openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #20670
Re: can't run nova boot from command line (works from horizon)
Hi Sébastien
Problem is, I can't run nova network-list either!
stack@gpfs6-int:~$ nova network-list
ERROR: Not found (HTTP 404)
I can, however, run:
stack@gpfs6-int:~$ nova net-list
+--------------------------------------+---------+---------------+
| ID | Label | CIDR |
+--------------------------------------+---------+---------------+
| 1c6ede3d-8c7d-46e5-8df8-135f74088088 | private | 172.30.1.0/24 |
+--------------------------------------+---------+---------------+
The error I see (with nova network-list) is:
2013-02-04 10:57:36.666 3209 INFO nova.osapi_compute.wsgi.server [-]
(3209) accepted ('10.200.20.153', 33874)
2013-02-04 10:57:36.723 INFO nova.osapi_compute.wsgi.server
[req-38b415b4-46ca-4e63-8bf6-3b111835716b admin admin] 10.200.20.153
"GET /v2/fa2e432641da4605bd01e3d2b043b88b/os-networksv2 HTTP/1.1"
status: 404 len: 176 time: 0.0550740
If I run your command (i.e., with --nic ..), it still fails with this
output from nova-api:
2013-02-04 11:04:26.314 4477 TRACE nova.api.openstack File
"/opt/stack/nova/nova/db/sqlalchemy/api.py", line 2219, in
network_get_all_by_uuids
2013-02-04 11:04:26.314 4477 TRACE nova.api.openstack
network_uuid=network_uuid, project_id=context.project_id)
2013-02-04 11:04:26.314 4477 TRACE nova.api.openstack
NetworkNotFoundForProject: Either Network uuid
00000000-0000-0000-0000-000000000000 is not present or is not assigned
to the project fa2e432641da4605bd01e3d2b043b88b.
2013-02-04 11:04:26.322 INFO nova.api.openstack
[req-367e5855-ed39-425d-9138-33c19cfa4826 admin admin]
http://10.200.20.153:8774/v2/fa2e432641da4605bd01e3d2b043b88b/servers
returned with HTTP 404
2013-02-04 11:04:26.324 INFO nova.osapi_compute.wsgi.server
[req-367e5855-ed39-425d-9138-33c19cfa4826 admin admin] 10.200.20.153
"POST /v2/fa2e432641da4605bd01e3d2b043b88b/servers HTTP/1.1" status: 404
len: 272 time: 0.3524289
Which, I think, is a bit different from the first error.
Thanks
John
On 2/4/2013 12:53 PM, Sébastien Han wrote:
> nova network-list then look for the id and add the following to your
> boot command:
>
> nova boot bla bla bla --nic net-id=<network-id> <instance-name>
>
> Let me know if it's better.
>
> Cheers.
>
> --
> Regards,
> Sébastien Han.
>
>
> On Mon, Feb 4, 2013 at 6:24 PM, JR <botemout@xxxxxxxxx> wrote:
>> Greetings,
>>
>> I'm running a devstack test cluster (all in one on a single host), which
>> I've had up for days now. Suddenly, I'm unable to run:
>>
>> nova boot --image d5784c25-9d3f-4023-8dd2-785d14fe251a --flavor 1
>> --security-groups default inst01
>>
>> which returns
>> ERROR: The resource could not be found. (HTTP 404) (Request-ID:
>> req-cb2d2545-395c-4582-ab9a-e594d0c4606e)
>>
>> I've looked at all the services which are started by devstack (and which
>> are put into a screen session) and they are all running.
>>
>> nova image-list and other nova commands work. I'm also able to use glance.
>>
>> I see this output from nova-api:
>> 2013-02-04 10:21:05.333 ERROR nova.api.openstack
>> [req-4d9b4140-cdbb-4beb-9df9-38594f7fc070 demo demo] Caught error: No
>> networks defined.
>> Traceback (most recent call last):
>>
>> File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 276, in
>> _process_data
>> rval = self.proxy.dispatch(ctxt, version, method, **args)
>>
>> File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line
>> 133, in dispatch
>> return getattr(proxyobj, method)(ctxt, **kwargs)
>>
>> File "/opt/stack/nova/nova/network/manager.py", line 1845, in
>> validate_networks
>> self._get_networks_by_uuids(context, network_uuids)
>>
>> File "/opt/stack/nova/nova/network/manager.py", line 1872, in
>> _get_networks_by_uuids
>> project_only="allow_none")
>>
>> File "/opt/stack/nova/nova/db/api.py", line 865, in
>> network_get_all_by_uuids
>> project_only=project_only)
>>
>> File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 134, in wrapper
>> return f(*args, **kwargs)
>>
>> File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 2206, in
>> network_get_all_by_uuids
>> raise exception.NoNetworksFound()
>>
>>
>> Nothing has changed in the configuration of the environment. Any ideas?
>>
>> Thanks
>> JR
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
Follow ups
References