Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

2017-07-25 Thread Markos Chandras
On 25/07/17 15:05, Periyasamy Palanisamy wrote:
> Hi Markos,
> 
> Looks like virsh command works with sudo.
> Here is the output:
> 
> [opnfv_epalper@pod1-blade02 xci]$ sudo virsh list --all
>  IdName   State
> 
>  - opnfv  shut off
> 
> [opnfv_epalper@pod1-blade02 xci]$ sudo virsh start opnfv
> error: Failed to start domain opnfv
> error: internal error: process exited while connecting to monitor: 
> 2017-07-25T14:03:03.766466Z qemu-kvm: -chardev 
> file,id=charserial0,path=/var/log/libvirt/baremetal_logs/opnfv_console.log: 
> Could not open '/var/log/libvirt/baremetal_logs/opnfv_console.log': 
> Permission denied
> 
> Thanks,
> Periyasamy

Well the issue is pretty clear now. The only thing is why are you seeing
this and I don't. I even tried it now on a fresh ubuntu 16.04
installation and everything works fine.

-- 
markos

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
___
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss


Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

2017-07-25 Thread Periyasamy Palanisamy
Hi Markos,

Looks like virsh command works with sudo.
Here is the output:

[opnfv_epalper@pod1-blade02 xci]$ sudo virsh list --all
 IdName   State

 - opnfv  shut off

[opnfv_epalper@pod1-blade02 xci]$ sudo virsh start opnfv
error: Failed to start domain opnfv
error: internal error: process exited while connecting to monitor: 
2017-07-25T14:03:03.766466Z qemu-kvm: -chardev 
file,id=charserial0,path=/var/log/libvirt/baremetal_logs/opnfv_console.log: 
Could not open '/var/log/libvirt/baremetal_logs/opnfv_console.log': Permission 
denied

Thanks,
Periyasamy

-Original Message-
From: Markos Chandras [mailto:mchand...@suse.de] 
Sent: Tuesday, July 25, 2017 6:48 PM
To: Periyasamy Palanisamy <periyasamy.palanis...@ericsson.com>; 
opnfv-tech-discuss@lists.opnfv.org
Subject: Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

On 25/07/17 13:50, Periyasamy Palanisamy wrote:
> Hi Markos,
> 
> Here is the error I see for aio flavor (same error [1] is thrown for all 
> flavors from os_ironic during dynamic enrolling of bare metal) :
> 
> [opnfv_epalper@pod1-blade02 xci]$ virsh list --all
> error: failed to connect to the hypervisor
> error: Cannot recv data: Connection reset by peer
> 
> [opnfv_epalper@pod1-blade02 xci]$ virsh start opnfv
> error: failed to connect to the hypervisor
> error: Cannot recv data: Connection reset by peer
> 
> Thanks,
> Periyasamy

Is the libvirtd (or libvirt-bin or however it's called in your system) service 
running? Any errors? Can you start it? It appears that there is some of of KVM 
issue on your system so XCI can't even boot (or even
create) the virtual machines

--
markos

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 
(AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
___
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss


Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

2017-07-25 Thread Markos Chandras
On 25/07/17 13:50, Periyasamy Palanisamy wrote:
> Hi Markos,
> 
> Here is the error I see for aio flavor (same error [1] is thrown for all 
> flavors from os_ironic during dynamic enrolling of bare metal) :
> 
> [opnfv_epalper@pod1-blade02 xci]$ virsh list --all
> error: failed to connect to the hypervisor
> error: Cannot recv data: Connection reset by peer
> 
> [opnfv_epalper@pod1-blade02 xci]$ virsh start opnfv
> error: failed to connect to the hypervisor
> error: Cannot recv data: Connection reset by peer
> 
> Thanks,
> Periyasamy

Is the libvirtd (or libvirt-bin or however it's called in your system)
service running? Any errors? Can you start it? It appears that there is
some of of KVM issue on your system so XCI can't even boot (or even
create) the virtual machines

-- 
markos

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
___
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss


Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

2017-07-25 Thread Periyasamy Palanisamy
Hi Markos,

Here is the error I see for aio flavor (same error [1] is thrown for all 
flavors from os_ironic during dynamic enrolling of bare metal) :

[opnfv_epalper@pod1-blade02 xci]$ virsh list --all
error: failed to connect to the hypervisor
error: Cannot recv data: Connection reset by peer

[opnfv_epalper@pod1-blade02 xci]$ virsh start opnfv
error: failed to connect to the hypervisor
error: Cannot recv data: Connection reset by peer

Thanks,
Periyasamy

-Original Message-
From: opnfv-tech-discuss-boun...@lists.opnfv.org 
[mailto:opnfv-tech-discuss-boun...@lists.opnfv.org] On Behalf Of Markos Chandras
Sent: Tuesday, July 25, 2017 2:07 PM
To: opnfv-tech-discuss@lists.opnfv.org
Subject: Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

On 24/07/17 09:44, Periyasamy Palanisamy wrote:
> Hi Everyone,
>  
> I am trying to install xci with mini flavor and looks like it fails 
> ironic enroll task [1].
> PFA full log.
>  
> Thanks,
> Periyasamy
>  
> [1]
> controller00]", "ok: [compute00]", "ok: [opnfv]", "", "TASK 
> [ironic-enroll-dynamic : Execute os_client_config to collect facts] 
> ***", "skipping: [controller00]", "skipping: [compute00]",
> "skipping: [opnfv]", "", "TASK [ironic-enroll-dynamic : Set 
> os_client_config's auth parameters if not already set.] ***", "skipping:
> [controller00]", "skipping: [compute00]", "skipping: [opnfv]", "", 
> "TASK [ironic-enroll-dynamic : Dynamic enrollment] 
> **", "fatal: [controller00]: FAILED! =>
> {\"changed\": false, \"failed\": true, \"module_stderr\": \"No 
> handlers could be found for logger 
> \\\"ironicclient.common.http\\\"\\nTraceback
> (most recent call last):\\n  File
> \\\"/tmp/ansible_5PfqqM/ansible_module_os_ironic.py\\\", line 349, in
> \\nmain()\\n  File
> \\\"/tmp/ansible_5PfqqM/ansible_module_os_ironic.py\\\", line 239, in
> main\\nserver = cloud.get_machine(node_id)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/operatorcloud.py\\\", line
> 70, in get_machine\\n_tasks.MachineNodeGet(node_id=name_or_id)))\\n 
> File \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\",
> line 260, in submit_task\\nreturn self.run_task(task=task,
> raw=raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 271, in run_task\\nreturn self._run_task(task, raw=raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 285, in _run_task\\nreturn task.wait(raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 139, in wait\\nsuper(Task, self).wait()\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line 99,
> in wait\\nself._traceback)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 128, in run\\nself.done(self.main(client))\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/_tasks.py\\\", line 92, in
> main\\nreturn client.ironic_client.node.get(**self.args)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/v1/node.py\\\", line
> 313, in get\\nreturn self._get(resource_id=node_id,
> fields=fields)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/base.py\\\",
> line 88, in _get\\nreturn self._list(self._path(resource_id))[0]\\n 
> File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/base.py\\\",
> line 174, in _list\\nresp, body = self.api.json_request('GET',
> url)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 558, in json_request\\nresp = self._http_request(url, method,
> **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 188, in wrapper\\nreturn func(self, url, method, **kwargs)\\n 
> File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 527, in _http_request\\nraise_exc=False, **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/positional/__init__.py\\\", line
> 101, in inner\\nreturn wrapped(*args, **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/keystoneauth1/session.py\\\", line
> 703, in request\\nresp = send(**kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/keystoneauth1/session.py\\\", line
> 777, in _send_request\\nraise
> exceptions.ConnectFailure(msg)\\nkeystoneauth1.exceptions.connection.

Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

2017-07-25 Thread Markos Chandras
On 24/07/17 09:44, Periyasamy Palanisamy wrote:
> Hi Everyone,
>  
> I am trying to install xci with mini flavor and looks like it fails
> ironic enroll task [1].
> PFA full log.
>  
> Thanks,
> Periyasamy
>  
> [1]
> controller00]", "ok: [compute00]", "ok: [opnfv]", "", "TASK
> [ironic-enroll-dynamic : Execute os_client_config to collect facts]
> ***", "skipping: [controller00]", "skipping: [compute00]",
> "skipping: [opnfv]", "", "TASK [ironic-enroll-dynamic : Set
> os_client_config's auth parameters if not already set.] ***", "skipping:
> [controller00]", "skipping: [compute00]", "skipping: [opnfv]", "", "TASK
> [ironic-enroll-dynamic : Dynamic enrollment]
> **", "fatal: [controller00]: FAILED! =>
> {\"changed\": false, \"failed\": true, \"module_stderr\": \"No handlers
> could be found for logger \\\"ironicclient.common.http\\\"\\nTraceback
> (most recent call last):\\n  File
> \\\"/tmp/ansible_5PfqqM/ansible_module_os_ironic.py\\\", line 349, in
> \\nmain()\\n  File
> \\\"/tmp/ansible_5PfqqM/ansible_module_os_ironic.py\\\", line 239, in
> main\\nserver = cloud.get_machine(node_id)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/operatorcloud.py\\\", line
> 70, in get_machine\\n_tasks.MachineNodeGet(node_id=name_or_id)))\\n 
> File \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\",
> line 260, in submit_task\\nreturn self.run_task(task=task,
> raw=raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 271, in run_task\\nreturn self._run_task(task, raw=raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 285, in _run_task\\nreturn task.wait(raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 139, in wait\\nsuper(Task, self).wait()\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line 99,
> in wait\\nself._traceback)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 128, in run\\nself.done(self.main(client))\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/_tasks.py\\\", line 92, in
> main\\nreturn client.ironic_client.node.get(**self.args)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/v1/node.py\\\", line
> 313, in get\\nreturn self._get(resource_id=node_id,
> fields=fields)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/base.py\\\",
> line 88, in _get\\nreturn self._list(self._path(resource_id))[0]\\n 
> File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/base.py\\\",
> line 174, in _list\\nresp, body = self.api.json_request('GET',
> url)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 558, in json_request\\nresp = self._http_request(url, method,
> **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 188, in wrapper\\nreturn func(self, url, method, **kwargs)\\n 
> File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 527, in _http_request\\nraise_exc=False, **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/positional/__init__.py\\\", line
> 101, in inner\\nreturn wrapped(*args, **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/keystoneauth1/session.py\\\", line
> 703, in request\\nresp = send(**kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/keystoneauth1/session.py\\\", line
> 777, in _send_request\\nraise
> exceptions.ConnectFailure(msg)\\nkeystoneauth1.exceptions.connection.ConnectFailure:
> Unable to establish connection to
> http://localhost:6385/v1/nodes/e1369efa-5391-5035-8533-3a065c44a584:
> HTTPConnectionPool(host='localhost', port=6385): Max retries exceeded
> with url: /v1/nodes/e1369efa-5391-5035-8533-3a065c44a584 (Caused by
> NewConnectionError(' 0x2c6b090>: Failed to establish a new connection: [Errno 111] Connection
> refused',))\\n\", \"module_stdout\": \"\", \"msg\": \"MODULE
> FAILURE\"}", "fatal: [compute00]: FAILED! => {\"changed\": false,
> \"failed\": true, \"module_stderr\": \"No handlers could be found for logger
>  
> 
> 
> ___
> opnfv-tech-discuss mailing list
> opnfv-tech-discuss@lists.opnfv.org
> https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
> 

Could you check what's the status of the VMs when this error happens?

Try 'virsh list --all'

If a VM is stopped, can you try to start it with

'virsh start $vm_name'

it may give us a more obvious error.

-- 
markos

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
___
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss


Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

2017-07-24 Thread Markos Chandras
On 24/07/17 09:56, Markos Chandras wrote:
> On 24/07/17 09:44, Periyasamy Palanisamy wrote:>> [...]
> 
> Tianwei(on CC) had the same issue a few days ago. I don't know it's
> solved or not but perhaps he can shed some light here
> 

[Retrying again with re-arranged headers since the CC was dropped on my
other e-mail]

-- 
markos

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
___
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss


Re: [opnfv-tech-discuss] xci with mini flavor failed in ironic

2017-07-24 Thread Markos Chandras
On 24/07/17 09:44, Periyasamy Palanisamy wrote:
> Hi Everyone,
>  
> I am trying to install xci with mini flavor and looks like it fails
> ironic enroll task [1].
> PFA full log.
>  
> Thanks,
> Periyasamy
>  
> [1]
> controller00]", "ok: [compute00]", "ok: [opnfv]", "", "TASK
> [ironic-enroll-dynamic : Execute os_client_config to collect facts]
> ***", "skipping: [controller00]", "skipping: [compute00]",
> "skipping: [opnfv]", "", "TASK [ironic-enroll-dynamic : Set
> os_client_config's auth parameters if not already set.] ***", "skipping:
> [controller00]", "skipping: [compute00]", "skipping: [opnfv]", "", "TASK
> [ironic-enroll-dynamic : Dynamic enrollment]
> **", "fatal: [controller00]: FAILED! =>
> {\"changed\": false, \"failed\": true, \"module_stderr\": \"No handlers
> could be found for logger \\\"ironicclient.common.http\\\"\\nTraceback
> (most recent call last):\\n  File
> \\\"/tmp/ansible_5PfqqM/ansible_module_os_ironic.py\\\", line 349, in
> \\nmain()\\n  File
> \\\"/tmp/ansible_5PfqqM/ansible_module_os_ironic.py\\\", line 239, in
> main\\nserver = cloud.get_machine(node_id)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/operatorcloud.py\\\", line
> 70, in get_machine\\n_tasks.MachineNodeGet(node_id=name_or_id)))\\n 
> File \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\",
> line 260, in submit_task\\nreturn self.run_task(task=task,
> raw=raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 271, in run_task\\nreturn self._run_task(task, raw=raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 285, in _run_task\\nreturn task.wait(raw)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 139, in wait\\nsuper(Task, self).wait()\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line 99,
> in wait\\nself._traceback)\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/task_manager.py\\\", line
> 128, in run\\nself.done(self.main(client))\\n  File
> \\\"/usr/lib/python2.7/site-packages/shade/_tasks.py\\\", line 92, in
> main\\nreturn client.ironic_client.node.get(**self.args)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/v1/node.py\\\", line
> 313, in get\\nreturn self._get(resource_id=node_id,
> fields=fields)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/base.py\\\",
> line 88, in _get\\nreturn self._list(self._path(resource_id))[0]\\n 
> File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/base.py\\\",
> line 174, in _list\\nresp, body = self.api.json_request('GET',
> url)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 558, in json_request\\nresp = self._http_request(url, method,
> **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 188, in wrapper\\nreturn func(self, url, method, **kwargs)\\n 
> File
> \\\"/usr/lib/python2.7/site-packages/ironicclient/common/http.py\\\",
> line 527, in _http_request\\nraise_exc=False, **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/positional/__init__.py\\\", line
> 101, in inner\\nreturn wrapped(*args, **kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/keystoneauth1/session.py\\\", line
> 703, in request\\nresp = send(**kwargs)\\n  File
> \\\"/usr/lib/python2.7/site-packages/keystoneauth1/session.py\\\", line
> 777, in _send_request\\nraise
> exceptions.ConnectFailure(msg)\\nkeystoneauth1.exceptions.connection.ConnectFailure:
> Unable to establish connection to
> http://localhost:6385/v1/nodes/e1369efa-5391-5035-8533-3a065c44a584:
> HTTPConnectionPool(host='localhost', port=6385): Max retries exceeded
> with url: /v1/nodes/e1369efa-5391-5035-8533-3a065c44a584 (Caused by
> NewConnectionError(' 0x2c6b090>: Failed to establish a new connection: [Errno 111] Connection
> refused',))\\n\", \"module_stdout\": \"\", \"msg\": \"MODULE
> FAILURE\"}", "fatal: [compute00]: FAILED! => {\"changed\": false,
> \"failed\": true, \"module_stderr\": \"No handlers could be found for logger
>  
> 
> 
> ___
> opnfv-tech-discuss mailing list
> opnfv-tech-discuss@lists.opnfv.org
> https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
> 

Tianwei(on CC) had the same issue a few days ago. I don't know it's
solved or not but perhaps he can shed some light here

-- 
markos

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
___
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss