Comments (5)
I guess we can do something like:
async function _get_dns_servers_in_forwarders_file() {
if (!IS_LINUX_VM) return [];
try {
const line = await fs_utils.find_line_in_file(config.NAMED_DEFAULTS.FORWARDERS_OPTION_FILE, 'forwarders');
if (!line) return [];
const dns_servers = line.match(/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/g);
return dns_servers || [];
} catch (e) {
dbg.warn('_get_dns_servers_in_forwarders_file got error:', e);
return [];
}
}
@guymguym WDYT?
from noobaa-core.
Looks good @liranmauda !
from noobaa-core.
One comment is that we don't want this to warn (or even log) every time we call it - logging once is more than enough :)
from noobaa-core.
@nimrod-becker can this be assigned?
from noobaa-core.
I hit the same issue too:
May-30 8:16:20.813 [WebServer/41703] [ERROR] CONSOLE:: RPC._on_request: ERROR srv system_api.create_system reqid 2@fcall://fcall(235vhqb.zzxy) connid fcall://fcall(235vhqb.zzxy) Error: ENOENT: no such file or directory, open '/etc/noobaa_configured_dns.conf'
from noobaa-core.
Related Issues (20)
- master_keys.json file does not display the timestamp properly HOT 1
- Incorrect service status for rsyslog if syslog-ng enables HOT 2
- NC | Noobaa syslogs are sent to two different files
- NSFS | Create event json from debug module
- NSFS | when FS is unavailable requests fail immediately with InternalError exhausting client attempts
- NC | Service + CLI | Internal Refactoring and renaming
- NSFS | NamespaceFS.js Error handling
- Config-Option to deactivate rsyslog if syslogng are used HOT 3
- NSFS Bucket Tagging
- NSFS GLACIER optional return RestoreStatus in ListObjects
- NSFS endpoint should set its process/threads name in the OS to be identified accurately HOT 5
- NSFS: For clients like s3A, iceberg.. seeing 0 response in listing of a bucket with 5.15.3 HOT 7
- NSFS | NC | Improve Input Validations of Config
- NC | Unit tests suggestions and refactoring
- NC | Support multiple RPM versions on a single cluster (different nodes)
- NSFS on syscall error should log the operation info and not just the error code (even if debug level is low) HOT 3
- CI | Actions updates
- After account update with new access keys, old access keys are valid for next 5min ~ HOT 4
- account update with --user is throwing schema validation failure HOT 3
- Encrytion enablement with CCR is not working as expected HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noobaa-core.