[openstack-dev] [Ironic] Error in deploying ironicon Ubuntu 12.04

Peeyush Gupta gpeeyush at linux.vnet.ibm.com
Tue Sep 16 06:38:33 UTC 2014


Hi,

I did unstack and ran stack.sh again. Tried that 2-3 times, but I am 
getting this error always:


2014-09-15 16:34:51.047 | +++ grep tap
2014-09-15 16:34:51.047 | +++ sudo ip netns exec 
qdhcp-d117dfad-d794-4db1-9e1c-87818ebbba27 ip link list
2014-09-15 16:34:51.048 | +++ cut -d: -f2
2014-09-15 16:34:51.051 | +++ cut -b2-
2014-09-15 16:34:51.061 | Cannot open network namespace: No such file or 
directory
2014-09-15 16:34:51.064 | ++ local tapdev=
2014-09-15 16:34:51.065 | +++ sudo ovs-vsctl show
2014-09-15 16:34:51.065 | +++ grep -A1 -m1
2014-09-15 16:34:51.067 | +++ cut -d: -f2
2014-09-15 16:34:51.067 | +++ grep tag
2014-09-15 16:34:51.068 | Usage: grep [OPTION]... PATTERN [FILE]...
2014-09-15 16:34:51.068 | Try `grep --help' for more information.
2014-09-15 16:34:51.070 | +++ cut -b2-
2014-09-15 16:34:51.086 | ++ local tag_id=
2014-09-15 16:34:51.086 | ++ sudo ip link show ovs-tap1
2014-09-15 16:34:51.129 | Device "ovs-tap1" does not exist.
2014-09-15 16:34:51.131 | ++ sudo ip link show brbm-tap1
2014-09-15 16:34:51.141 | Device "brbm-tap1" does not exist.
2014-09-15 16:34:51.143 | ++ sudo ip link add brbm-tap1 type veth peer 
name ovs-tap1
2014-09-15 16:34:51.193 | ++ sudo ip link set dev brbm-tap1 up
2014-09-15 16:34:51.205 | ++ sudo ip link set dev ovs-tap1 up
2014-09-15 16:34:51.214 | ++ sudo ovs-vsctl -- --if-exists del-port 
ovs-tap1 -- add-port br-int ovs-tap1 tag=
2014-09-15 16:34:51.228 | ovs-vsctl: tag=: argument does not end in "=" 
followed by a value.
2014-09-15 16:34:51.231 | + exit_trap
2014-09-15 16:34:51.257 | + local r=1
2014-09-15 16:34:51.258 | ++ jobs -p
2014-09-15 16:34:51.258 | + jobs=
2014-09-15 16:34:51.259 | + [[ -n '' ]]
2014-09-15 16:34:51.259 | + kill_spinner
2014-09-15 16:34:51.259 | + '[' '!' -z '' ']'
2014-09-15 16:34:51.259 | + [[ 1 -ne 0 ]]
2014-09-15 16:34:51.259 | + echo 'Error on exit'
2014-09-15 16:34:51.259 | Error on exit
2014-09-15 16:34:51.259 | + [[ -z /opt/stack ]]
2014-09-15 16:34:51.259 | + /opt/stack/devstack/tools/worlddump.py -d 
/opt/stack
2014-09-15 16:34:51.508 | + exit 1

What I am interested to know is if this is a problem with precise or 
with devstack script?


On 09/15/2014 08:44 PM, Peeyush Gupta wrote:
> Hi,
>
> I reran the script after commenting out the docker.io line. Here is 
> the error I am getting:
>
> 2014-09-15 13:25:04.977 | + mysql -uroot -ppassword -h127.0.0.1 -e 
> 'DROP DATABASE IF EXISTS nova;'
> 2014-09-15 13:25:04.981 | + mysql -uroot -ppassword -h127.0.0.1 -e 
> 'CREATE DATABASE nova CHARACTER SET latin1;'
> 2014-09-15 13:25:04.985 | + /usr/local/bin/nova-manage db sync
> 2014-09-15 13:25:04.985 | /opt/stack/devstack/lib/nova: line 591: 
> /usr/local/bin/nova-manage: No such file or directory
> 2014-09-15 13:25:04.986 | + exit_trap
> 2014-09-15 13:25:04.986 | + local r=1
> 2014-09-15 13:25:04.986 | ++ jobs -p
> 2014-09-15 13:25:04.987 | + jobs=
> 2014-09-15 13:25:04.987 | + [[ -n '' ]]
> 2014-09-15 13:25:04.987 | + kill_spinner
> 2014-09-15 13:25:04.987 | + '[' '!' -z '' ']'
> 2014-09-15 13:25:04.988 | + [[ 1 -ne 0 ]]
> 2014-09-15 13:25:04.988 | + echo 'Error on exit'
> 2014-09-15 13:25:04.988 | Error on exit
> 2014-09-15 13:25:04.988 | + [[ -z /opt/stack ]]
> 2014-09-15 13:25:04.988 | + /opt/stack/devstack/tools/worlddump.py -d 
> /opt/stack
> 2014-09-15 13:25:05.060 | + exit 1
>
> I have nova installed on my machine, but not nova-manage. Any idea why 
> is this happening now?
>
> On 09/11/2014 06:49 PM, Jim Rollenhagen wrote:
>>
>> On September 11, 2014 3:52:59 AM PDT, Lucas Alvares Gomes 
>> <lucasagomes at gmail.com> wrote:
>>> Oh, it's because Precise doesn't have the docker.io package[1] (nor
>>> "docker").
>>>
>>> AFAIK the -infra team is now using Trusty in gate, so it won't be a
>>> problem. But if you think that we should still support Ironic DevStack
>>> with Precise please file a bug about it so the Ironic team can take a
>>> look on that.
>>>
>>> [1]
>>> http://packages.ubuntu.com/search?suite=trusty&section=all&arch=any&keywords=docker.io&searchon=names 
>>>
>>>
>>> Cheers,
>>> Lucas
>>>
>>> On Thu, Sep 11, 2014 at 11:12 AM, Peeyush <gpeeyush at linux.vnet.ibm.com>
>>> wrote:
>>>> Hi all,
>>>>
>>>> I have been trying to deploy Openstack-ironic on a Ubuntu 12.04 VM.
>>>> I encountered the following error:
>>>>
>>>> 2014-09-11 10:08:11.166 | Reading package lists...
>>>> 2014-09-11 10:08:11.471 | Building dependency tree...
>>>> 2014-09-11 10:08:11.475 | Reading state information...
>>>> 2014-09-11 10:08:11.610 | E: Unable to locate package docker.io
>>>> 2014-09-11 10:08:11.610 | E: Couldn't find any package by regex
>>> 'docker.io'
>>>> 2014-09-11 10:08:11.611 | + exit_trap
>>>> 2014-09-11 10:08:11.612 | + local r=100
>>>> 2014-09-11 10:08:11.612 | ++ jobs -p
>>>> 2014-09-11 10:08:11.612 | + jobs=
>>>> 2014-09-11 10:08:11.612 | + [[ -n '' ]]
>>>> 2014-09-11 10:08:11.612 | + kill_spinner
>>>> 2014-09-11 10:08:11.613 | + '[' '!' -z '' ']'
>>>> 2014-09-11 10:08:11.613 | + [[ 100 -ne 0 ]]
>>>> 2014-09-11 10:08:11.613 | + echo 'Error on exit'
>>>> 2014-09-11 10:08:11.613 | Error on exit
>>>> 2014-09-11 10:08:11.613 | + [[ -z /opt/stack ]]
>>>> 2014-09-11 10:08:11.613 | + ./tools/worlddump.py -d /opt/stack
>>>> 2014-09-11 10:08:11.655 | + exit 100
>>>>
>>>> I tried to make it work on a separate machine, but got the same
>>> error.
>>>> I understand that it could be because script is looking for docker.io
>>>> package,
>>>> but I guess only docker package is available. I tried to install
>>> docker.io,
>>>> but couldn't
>>>> find it.
>>>>
>>>> Can you please help me out to resolve this?
>> Ouch. I added this as a dependency in devstack for building IPA.
>>
>> As Lucas said, it works fine in 14.04. In 12.04, and if using Ironic 
>> with the PXE driver (default), you can likely remove that line from 
>> devstack/files/apts/ironic. I won't promise that everything will work 
>> after that, but chances are good.
>>
>> // jim
>>>> Thanks,
>>>>
>>>> -- 
>>>> Peeyush Gupta
>>>> gpeeyush at linux.vnet.ibm.com
>>>>
>>>>
>>>> _______________________________________________
>>>> OpenStack-dev mailing list
>>>> OpenStack-dev at lists.openstack.org
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>> _______________________________________________
>>> OpenStack-dev mailing list
>>> OpenStack-dev at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>

-- 
Peeyush Gupta
gpeeyush at linux.vnet.ibm.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140916/cb87b159/attachment.html>


More information about the OpenStack-dev mailing list