Re: [openstack-dev] [Ironic] Failed to update Neutron port

2016-04-19 Thread Senthilprabu Shanmugavel
Hello,

Error was due to the reason Neutron client was not authenticating using V2
API.

Eventually it was resolved when I update my auth_uri to add /v2/ tag

auth_uri=http://172.19.0.3:5000/v2.0/

But this was not specified in documentation. Reference :
http://docs.openstack.org/developer/ironic/4.2.1/deploy/install-guide.html.
Even in latest 5.x version documentation.





On Mon, Apr 11, 2016 at 12:38 PM, Sam Betts (sambetts) 
wrote:

> Looking at the errors here it appears that everything is configured
> correctly in Ironic (mac addresses etc) because you are getting through the
> ramdisk boot and deploy successfully.
>
> The error that is of real concern here is "Unauthorized: {"error":
> {"message": "The resource could not be found.", "code": 404, "title": "Not
> Found"}}" which seems to imply that something is wrong with the auth
> information given to Ironic and its failing to authenticate with Keystone
> as part of the neutron client. The resource could not be found error is
> thrown when it can’t find the tenant or user requested in the config file.
>
> Sam
>
>
> From: "Haomeng, Wang" 
> Reply-To: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev@lists.openstack.org>
> Date: Monday, 11 April 2016 02:45
> To: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev@lists.openstack.org>
> Subject: Re: [openstack-dev] [Ironic] Failed to update Neutron port
>
> Hi,
>
> With my experence, for such "2016-04-08 16:31:38.690 31893 ERROR 
> ironic.dhcp.neutron
> [-] Failed to update Neutron port 7fb98457-90e6-43be-a353-f03ea1959912."
> issue, some cases are that root cause is we did not register baremetal's
> mac into ironic, so neutron can not bind mac for baremetal dhcp/pxe, and
> set DHCP BOOT option for port, so run below command if it is missing:
>
> ironic port-create -n $NODE_UUID -a $MAC_ADDRESS
>
> Good luck!
>
>
> On Fri, Apr 8, 2016 at 10:00 PM, Senthilprabu Shanmugavel <
> senthilprab...@gmail.com> wrote:
>
>> Hello,
>>
>> I am deploying an ARMv8 board using Ironic integrated with Openstack
>> Liberty on Ubuntu 12.04 host. I am using fake_pxe driver and doing the
>> power on manually. Deploy image created from disk image creator tool
>>
>> Nova boot starts the deployment, deployment image is booted, ironic-agent
>> is able to communicate with ironic conductor. After this, scsi connection
>> is established, I can see this in syslog in ironic conductor node
>>
>>
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.620364] scsi
>> host10: iSCSI Initiator over TCP/IP
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.885579] scsi
>> 10:0:0:0: RAID  IET  Controller   0001 PQ: 0 ANSI: 5
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.886404] scsi
>> 10:0:0:0: Attached scsi generic sg2 type 12
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.887088] scsi
>> 10:0:0:1: Direct-Access IET  VIRTUAL-DISK 0001 PQ: 0 ANSI: 5
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.888157] sd
>> 10:0:0:1: Attached scsi generic sg3 type 0
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.888490] sd
>> 10:0:0:1: [sdc] 15240576 512-byte logical blocks: (7.80 GB/7.26 GiB)
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889114] sd
>> 10:0:0:1: [sdc] Write Protect is off
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889118] sd
>> 10:0:0:1: [sdc] Mode Sense: 69 00 10 08
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889462] sd
>> 10:0:0:1: [sdc] Write cache: enabled, read cache: enabled, supports DPO and
>> FUA
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.894611]  sdc:
>> unknown partition table
>> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.896728] sd
>> 10:0:0:1: [sdc] Attached SCSI disk
>> Apr  8 16:31:35 lionfish-ocp-controller iscsid: Connection4:0 to [target:
>> iqn.2008-10.org.openstack:5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0, portal:
>> 192.168.2.161,3260] through [iface: default] is operational now
>>
>> On my node console, I see below messages
>>
>> root@ubuntu:~# SysRq : Emergency Sync
>> SysRq : Power Off
>> reboot: Power down
>>
>> I think this is triggered by scsi driver (also seen in ironic conductor
>> syslog) but node did not reboot due to known problem. So I powered off
>> manually and powered on.
>>
>> Apr  8 16:31:38 lionfish-ocp-controller kernel: [16.290404] sd

Re: [openstack-dev] [Ironic] Failed to update Neutron port

2016-04-11 Thread Sam Betts (sambetts)
Looking at the errors here it appears that everything is configured correctly 
in Ironic (mac addresses etc) because you are getting through the ramdisk boot 
and deploy successfully.

The error that is of real concern here is "Unauthorized: {"error": {"message": 
"The resource could not be found.", "code": 404, "title": "Not Found"}}" which 
seems to imply that something is wrong with the auth information given to 
Ironic and its failing to authenticate with Keystone as part of the neutron 
client. The resource could not be found error is thrown when it can’t find the 
tenant or user requested in the config file.

Sam


From: "Haomeng, Wang" mailto:wanghaom...@gmail.com>>
Reply-To: "OpenStack Development Mailing List (not for usage questions)" 
mailto:openstack-dev@lists.openstack.org>>
Date: Monday, 11 April 2016 02:45
To: "OpenStack Development Mailing List (not for usage questions)" 
mailto:openstack-dev@lists.openstack.org>>
Subject: Re: [openstack-dev] [Ironic] Failed to update Neutron port

Hi,

With my experence, for such "2016-04-08 16:31:38.690 31893 ERROR 
ironic.dhcp.neutron [-] Failed to update Neutron port 
7fb98457-90e6-43be-a353-f03ea1959912." issue, some cases are that root cause is 
we did not register baremetal's mac into ironic, so neutron can not bind mac 
for baremetal dhcp/pxe, and set DHCP BOOT option for port, so run below command 
if it is missing:


ironic port-create -n $NODE_UUID -a $MAC_ADDRESS


Good luck!


On Fri, Apr 8, 2016 at 10:00 PM, Senthilprabu Shanmugavel 
mailto:senthilprab...@gmail.com>> wrote:
Hello,

I am deploying an ARMv8 board using Ironic integrated with Openstack Liberty on 
Ubuntu 12.04 host. I am using fake_pxe driver and doing the power on manually. 
Deploy image created from disk image creator tool

Nova boot starts the deployment, deployment image is booted, ironic-agent is 
able to communicate with ironic conductor. After this, scsi connection is 
established, I can see this in syslog in ironic conductor node


Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.620364] scsi host10: 
iSCSI Initiator over TCP/IP
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.885579] scsi 10:0:0:0: 
RAID  IET  Controller   0001 PQ: 0 ANSI: 5
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.886404] scsi 10:0:0:0: 
Attached scsi generic sg2 type 12
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.887088] scsi 10:0:0:1: 
Direct-Access IET  VIRTUAL-DISK 0001 PQ: 0 ANSI: 5
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.888157] sd 10:0:0:1: 
Attached scsi generic sg3 type 0
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.888490] sd 10:0:0:1: 
[sdc] 15240576 512-byte logical blocks: (7.80 GB/7.26 GiB)
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889114] sd 10:0:0:1: 
[sdc] Write Protect is off
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889118] sd 10:0:0:1: 
[sdc] Mode Sense: 69 00 10 08
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889462] sd 10:0:0:1: 
[sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.894611]  sdc: unknown 
partition table
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.896728] sd 10:0:0:1: 
[sdc] Attached SCSI disk
Apr  8 16:31:35 lionfish-ocp-controller iscsid: Connection4:0 to [target: 
iqn.2008-10.org.openstack:5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0, portal: 
192.168.2.161,3260] through [iface: default] is operational now

On my node console, I see below messages

root@ubuntu:~# SysRq : Emergency Sync
SysRq : Power Off
reboot: Power down

I think this is triggered by scsi driver (also seen in ironic conductor syslog) 
but node did not reboot due to known problem. So I powered off manually and 
powered on.

Apr  8 16:31:38 lionfish-ocp-controller kernel: [16.290404] sd 10:0:0:1: 
[sdc] Synchronizing SCSI cache
Apr  8 16:31:38 lionfish-ocp-controller iscsid: Connection4:0 to [target: 
iqn.2008-10.org.openstack:5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0, portal: 
192.168.2.161,3260] through [iface: default] is shutdown.

So far looks good. I was expecting user image download via scsi is successful 
and should be booted after going down.

By then ironic conductor log says deployment failed due to neutron failing to 
set DHCP BOOT option for port.


2016-04-08 16:31:14.229 31893 INFO ironic.drivers.modules.agent_base_vendor 
[req-c1e50ceb-1e11-47ea-9260-e30a2f10605d - - - - -] Initial lookup for node 
5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0 succeeded, agent is running and waiting 
for commands
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron [-] Failed to update 
Neutron port 7fb98457-90e6-43be-a353-f03ea1959912.
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron Traceback (most recent 
call last):
2016-04-08 16:31:38.690 318

Re: [openstack-dev] [Ironic] Failed to update Neutron port

2016-04-10 Thread Haomeng, Wang
Hi,

With my experence, for such "2016-04-08 16:31:38.690 31893 ERROR
ironic.dhcp.neutron
[-] Failed to update Neutron port 7fb98457-90e6-43be-a353-f03ea1959912."
issue, some cases are that root cause is we did not register baremetal's
mac into ironic, so neutron can not bind mac for baremetal dhcp/pxe, and
set DHCP BOOT option for port, so run below command if it is missing:

ironic port-create -n $NODE_UUID -a $MAC_ADDRESS

Good luck!


On Fri, Apr 8, 2016 at 10:00 PM, Senthilprabu Shanmugavel <
senthilprab...@gmail.com> wrote:

> Hello,
>
> I am deploying an ARMv8 board using Ironic integrated with Openstack
> Liberty on Ubuntu 12.04 host. I am using fake_pxe driver and doing the
> power on manually. Deploy image created from disk image creator tool
>
> Nova boot starts the deployment, deployment image is booted, ironic-agent
> is able to communicate with ironic conductor. After this, scsi connection
> is established, I can see this in syslog in ironic conductor node
>
>
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.620364] scsi
> host10: iSCSI Initiator over TCP/IP
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.885579] scsi
> 10:0:0:0: RAID  IET  Controller   0001 PQ: 0 ANSI: 5
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.886404] scsi
> 10:0:0:0: Attached scsi generic sg2 type 12
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.887088] scsi
> 10:0:0:1: Direct-Access IET  VIRTUAL-DISK 0001 PQ: 0 ANSI: 5
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.888157] sd
> 10:0:0:1: Attached scsi generic sg3 type 0
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.888490] sd
> 10:0:0:1: [sdc] 15240576 512-byte logical blocks: (7.80 GB/7.26 GiB)
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889114] sd
> 10:0:0:1: [sdc] Write Protect is off
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889118] sd
> 10:0:0:1: [sdc] Mode Sense: 69 00 10 08
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889462] sd
> 10:0:0:1: [sdc] Write cache: enabled, read cache: enabled, supports DPO and
> FUA
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.894611]  sdc:
> unknown partition table
> Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.896728] sd
> 10:0:0:1: [sdc] Attached SCSI disk
> Apr  8 16:31:35 lionfish-ocp-controller iscsid: Connection4:0 to [target:
> iqn.2008-10.org.openstack:5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0, portal:
> 192.168.2.161,3260] through [iface: default] is operational now
>
> On my node console, I see below messages
>
> root@ubuntu:~# SysRq : Emergency Sync
> SysRq : Power Off
> reboot: Power down
>
> I think this is triggered by scsi driver (also seen in ironic conductor
> syslog) but node did not reboot due to known problem. So I powered off
> manually and powered on.
>
> Apr  8 16:31:38 lionfish-ocp-controller kernel: [16.290404] sd
> 10:0:0:1: [sdc] Synchronizing SCSI cache
> Apr  8 16:31:38 lionfish-ocp-controller iscsid: Connection4:0 to [target:
> iqn.2008-10.org.openstack:5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0, portal:
> 192.168.2.161,3260] through [iface: default] is shutdown.
>
> So far looks good. I was expecting user image download via scsi is
> successful and should be booted after going down.
>
> By then ironic conductor log says deployment failed due to neutron failing
> to set DHCP BOOT option for port.
>
>
> 2016-04-08 16:31:14.229 31893 INFO
> ironic.drivers.modules.agent_base_vendor
> [req-c1e50ceb-1e11-47ea-9260-e30a2f10605d - - - - -] Initial lookup for
> node 5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0 succeeded, agent is running and
> waiting for commands
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron [-] Failed to
> update Neutron port 7fb98457-90e6-43be-a353-f03ea1959912.
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron Traceback (most
> recent call last):
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
> "/usr/lib/python2.7/dist-packages/ironic/dhcp/neutron.py", line 126, in
> update_port_dhcp_opts
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron
> _build_client(token).update_port(port_id, port_req_body)
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
> "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102,
> in with_params
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron ret =
> self.function(instance, *args, **kwargs)
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
> "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 562,
> in update_port
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron return
> self.put(self.port_path % (port), body=body)
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
> "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 302,
> in put
> 2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron
> headers=headers, params=params)
> 2016-04-08 16:31:38.690 31

[openstack-dev] [Ironic] Failed to update Neutron port

2016-04-08 Thread Senthilprabu Shanmugavel
Hello,

I am deploying an ARMv8 board using Ironic integrated with Openstack
Liberty on Ubuntu 12.04 host. I am using fake_pxe driver and doing the
power on manually. Deploy image created from disk image creator tool

Nova boot starts the deployment, deployment image is booted, ironic-agent
is able to communicate with ironic conductor. After this, scsi connection
is established, I can see this in syslog in ironic conductor node


Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.620364] scsi
host10: iSCSI Initiator over TCP/IP
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.885579] scsi
10:0:0:0: RAID  IET  Controller   0001 PQ: 0 ANSI: 5
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.886404] scsi
10:0:0:0: Attached scsi generic sg2 type 12
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.887088] scsi
10:0:0:1: Direct-Access IET  VIRTUAL-DISK 0001 PQ: 0 ANSI: 5
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.888157] sd
10:0:0:1: Attached scsi generic sg3 type 0
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.888490] sd
10:0:0:1: [sdc] 15240576 512-byte logical blocks: (7.80 GB/7.26 GiB)
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889114] sd
10:0:0:1: [sdc] Write Protect is off
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889118] sd
10:0:0:1: [sdc] Mode Sense: 69 00 10 08
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.889462] sd
10:0:0:1: [sdc] Write cache: enabled, read cache: enabled, supports DPO and
FUA
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.894611]  sdc:
unknown partition table
Apr  8 16:31:35 lionfish-ocp-controller kernel: [13.896728] sd
10:0:0:1: [sdc] Attached SCSI disk
Apr  8 16:31:35 lionfish-ocp-controller iscsid: Connection4:0 to [target:
iqn.2008-10.org.openstack:5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0, portal:
192.168.2.161,3260] through [iface: default] is operational now

On my node console, I see below messages

root@ubuntu:~# SysRq : Emergency Sync
SysRq : Power Off
reboot: Power down

I think this is triggered by scsi driver (also seen in ironic conductor
syslog) but node did not reboot due to known problem. So I powered off
manually and powered on.

Apr  8 16:31:38 lionfish-ocp-controller kernel: [16.290404] sd
10:0:0:1: [sdc] Synchronizing SCSI cache
Apr  8 16:31:38 lionfish-ocp-controller iscsid: Connection4:0 to [target:
iqn.2008-10.org.openstack:5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0, portal:
192.168.2.161,3260] through [iface: default] is shutdown.

So far looks good. I was expecting user image download via scsi is
successful and should be booted after going down.

By then ironic conductor log says deployment failed due to neutron failing
to set DHCP BOOT option for port.


2016-04-08 16:31:14.229 31893 INFO ironic.drivers.modules.agent_base_vendor
[req-c1e50ceb-1e11-47ea-9260-e30a2f10605d - - - - -] Initial lookup for
node 5044c5ab-a4f5-4ba1-9e3d-01a0cc9bb9e0 succeeded, agent is running and
waiting for commands
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron [-] Failed to
update Neutron port 7fb98457-90e6-43be-a353-f03ea1959912.
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron Traceback (most
recent call last):
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
"/usr/lib/python2.7/dist-packages/ironic/dhcp/neutron.py", line 126, in
update_port_dhcp_opts
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron
_build_client(token).update_port(port_id, port_req_body)
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
"/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102,
in with_params
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron ret =
self.function(instance, *args, **kwargs)
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
"/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 562,
in update_port
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron return
self.put(self.port_path % (port), body=body)
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
"/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 302,
in put
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron
headers=headers, params=params)
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
"/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 270,
in retry_request
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron
headers=headers, params=params)
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
"/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 200,
in do_request
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron
content_type=self.content_type())
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron   File
"/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 158, in
do_request
2016-04-08 16:31:38.690 31893 ERROR ironic.dhcp.neutron
self.authenticate_and_fetch_endpoint_url()
20