Bug 1334735 - No way to change /etc/hosts in cockpit UI
Summary: No way to change /etc/hosts in cockpit UI
Keywords:
Status: CLOSED DUPLICATE of bug 1329943
Alias: None
Product: ovirt-node
Classification: oVirt
Component: UI
Version: 4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Fabian Deutsch
QA Contact: Ying Cui
URL:
Whiteboard:
Depends On: 1329943
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-10 12:27 UTC by Sandro Bonazzola
Modified: 2016-05-10 15:35 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-10 15:35:29 UTC
oVirt Team: Node
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

Description Sandro Bonazzola 2016-05-10 12:27:05 UTC
Set host name on the NGN host without DNS entry for this host.

Going to ovirt -> virtual machines -> running vms tab the following error is showed:


Vdsm execution failed! Please check: 
- [path_to_cokcpit-ovirt-plugin]/vdsm/vdsm is executable,
- __DEV__ environment variable when building.

VDSM path: /usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsm

Additional info:
# ls -l /usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsm
-rwxr-xr-x. 1 root root 351  6 mag 08.43 /usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsm


# /usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsm
Traceback (most recent call last):
  File "/usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsmJsonRPCCli.py", line 294, in <module>
    sys.exit(main())
  File "/usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsmJsonRPCCli.py", line 257, in main
    service = get_vdsm_service()
  File "/usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsmJsonRPCCli.py", line 50, in get_vdsm_service
    _service = jsonrpcvdscli.connect(rqueue)
  File "/usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py", line 221, in connect
    responseQueue)
  File "/usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py", line 211, in _create
    lazy_start=False)
  File "/usr/lib/python2.7/site-packages/yajsonrpc/stompreactor.py", line 584, in StandAloneRpcClient
    client = StompClient(utils.create_connected_socket(host, port, sslctx),
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 852, in create_connected_socket
    socket.AF_UNSPEC, socket.SOCK_STREAM)
socket.gaierror: [Errno -2] Name or service not known

Issue is that changing host name doesn't add it to /etc/hosts and there's not a way to configure it using cockpit

Comment 1 Fabian Deutsch 2016-05-10 15:35:29 UTC
It is not necessary to change /etc/hosts.

The local hostname resolution should work like:
Add myhostname to nsswitch.conf
Write hostname to /etc/hostname

/etc/hosts is left untouched

The problem here is bug 1329943 - nsswitch.conf on Node does not contain myhostname in nsswitch.conf

*** This bug has been marked as a duplicate of bug 1329943 ***


Note You need to log in before you can comment on or make changes to this bug.