Ask Your Question

Pío Pío 1949's profile - activity

2016-10-08 21:42:22 -0600 received badge  Student (source)
2013-07-08 00:34:30 -0600 received badge  Famous Question (source)
2013-07-08 00:34:30 -0600 received badge  Notable Question (source)
2013-05-22 10:43:35 -0600 received badge  Popular Question (source)
2013-05-22 07:48:02 -0600 commented answer What causes "Invalid project" with glance image-create?

Thanks a lot! That's it. :D

2013-05-22 07:47:48 -0600 received badge  Scholar (source)
2013-05-22 07:47:41 -0600 received badge  Supporter (source)
2013-05-22 07:15:38 -0600 received badge  Famous Question (source)
2013-05-20 10:55:05 -0600 asked a question What causes "Invalid project" with glance image-create?

Hi! I'm trying to add images to a DevStack installation. I want to add four images, but I always get this message:

Invalid project (HTTP 401)

This is what I'm trying to execute:

glance --os-username admin --os-password devstack --os-tenant-id admin --os-auth-url=http://193.146.91.13:5000/v2.0/ image-create --name="Windows Server 2012" --is-public=true --container-format=ovf --disk-format=raw < windows.img
2013-05-15 06:20:04 -0600 commented answer What causes error "service n-net is not running" when running stack.sh?

The sql_connection variable in /etc/nova/nova.conf is empty. For some reason, when I run stack.sh after editing the file to write the right value in, sql_connection goes blank again and I keep having the same error.

2013-05-15 03:43:55 -0600 commented answer What causes error "service n-net is not running" when running stack.sh?

I also think that the SQL connection used to work (at least it must be working for some of the components, since there was some activity in the MySQL server log). But it might be just not working for nova-network.

2013-05-15 03:41:59 -0600 commented answer What causes error "service n-net is not running" when running stack.sh?

All the lines of /opt/stack/nova/etc/nova/nova.conf were commented out (all of them start with "#"). I have tried removing the # at the start of the line and also changed the line for this:

sql_connection=mysql://root:devstack@193.146.91.13/nova?charset=utf8

Still not working. I

2013-05-14 07:29:44 -0600 commented question What causes error "service n-net is not running" when running stack.sh?

There you go! :)

2013-05-14 07:04:02 -0600 received badge  Notable Question (source)
2013-05-14 06:56:40 -0600 answered a question What causes error "service n-net is not running" when running stack.sh?

Sorry I took so long to reply. These are the last lines of the stack.sh execution (in the client):

2013-05-09 17:51:13 + [[ -r /opt/stack/devstack/extras.d/80-tempest.sh ]]
2013-05-09 17:51:13 + source /opt/stack/devstack/extras.d/80-tempest.sh stack
2013-05-09 17:51:13 ++ source /opt/stack/devstack/lib/tempest
2013-05-09 17:51:13 ++++ set +o
2013-05-09 17:51:13 ++++ grep xtrace
2013-05-09 17:51:13 +++ XTRACE='set -o xtrace'
2013-05-09 17:51:13 +++ set +o xtrace
2013-05-09 17:51:13 ++ [[ stack == \s\t\a\c\k ]]
2013-05-09 17:51:13 ++ is_service_enabled tempest
2013-05-09 17:51:13 ++ services=tempest
2013-05-09 17:51:13 ++ for service in '${services}'
2013-05-09 17:51:13 ++ [[ ,n-cpu,n-net,n-api,c-sch,c-api,c-vol, =~ ,tempest, ]]
2013-05-09 17:51:13 ++ [[ tempest == \n\o\v\a ]]
2013-05-09 17:51:13 ++ [[ tempest == \c\i\n\d\e\r ]]
2013-05-09 17:51:13 ++ [[ tempest == \c\e\i\l\o\m\e\t\e\r ]]
2013-05-09 17:51:13 ++ [[ tempest == \g\l\a\n\c\e ]]
2013-05-09 17:51:13 ++ [[ tempest == \q\u\a\n\t\u\m ]]
2013-05-09 17:51:13 ++ [[ tempest == \s\w\i\f\t ]]
2013-05-09 17:51:13 ++ [[ tempest == s-* ]]
2013-05-09 17:51:13 ++ return 1
2013-05-09 17:51:13 ++ [[ stack == \u\n\s\t\a\c\k ]]
2013-05-09 17:51:13 + [[ -x /opt/stack/devstack/local.sh ]]
2013-05-09 17:51:13 + service_check
2013-05-09 17:51:14 + local service
2013-05-09 17:51:14 + local failures
2013-05-09 17:51:14 + SCREEN_NAME=stack
2013-05-09 17:51:14 + SERVICE_DIR=/opt/stack/status
2013-05-09 17:51:14 + [[ ! -d /opt/stack/status/stack ]]
2013-05-09 17:51:14 ++ ls /opt/stack/status/stack/n-net.failure
2013-05-09 17:51:14 + failures=/opt/stack/status/stack/n-net.failure
2013-05-09 17:51:14 + for service in '$failures'
2013-05-09 17:51:14 ++ basename /opt/stack/status/stack/n-net.failure
2013-05-09 17:51:14 + service=n-net.failure
2013-05-09 17:51:14 + service=n-net
2013-05-09 17:51:14 + echo 'Error: Service n-net is not running'
2013-05-09 17:51:14 Error: Service n-net is not running
2013-05-09 17:51:14 + '[' -n /opt/stack/status/stack/n-net.failure ']'
2013-05-09 17:51:14 + echo 'More details about the above errors can be found with screen, with ./rejoin-stack.sh'
2013-05-09 17:51:14 More details about the above errors can be found with screen, with ./rejoin-stack.sh
2013-05-09 17:51:14 + set +o xtrace
2013-05-09 17:51:14 stack.sh completed in 70 seconds.

Here's the server's localrc file:

HOST_IP=193.146.91.13
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.42.128/24    
MULT_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
MYSQL_PASSWORD=devstack
DATABASE_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_TOKEN=devstack
SERVICE_PASSWORD=devstack
ADMIN_PASSWORD=devstack

And the client's:

HOST_IP=193.146.91.14
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/24
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.42.128/24
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=devstack
DATABASE_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack ...
(more)
2013-05-10 20:29:54 -0600 received badge  Popular Question (source)
2013-05-10 09:47:07 -0600 received badge  Editor (source)
2013-05-10 06:52:18 -0600 asked a question What causes error "service n-net is not running" when running stack.sh?

Hi! I'm trying to run a DevStack installation in a fresh Ubuntu 12.04 Server installation. I am using two physical servers - the controller node is working fine (or seems to), but the compute node is not, since stack.sh fails every time I run it.

I created a user "stack" with password "stack" and I'm running stack.sh with it. Every time I try to run it, I get this error: "Error: service n-net is not running". Typing "nova-manage service list" or "nova-manage host list" after stack.sh fails gives me the following error:

2013-05-09 14:44:07.926 CRITICAL nova [req-83022c84-e910-4eb3-aa02-4e992fa5002a None None] Could not parse rfc1738 URL from string ''
2013-05-09 14:44:07.926 TRACE nova Traceback (most recent call last):
2013-05-09 14:44:07.926 TRACE nova   File "/usr/local/bin/nova-manage", line 9, in <module>
2013-05-09 14:44:07.926 TRACE nova     load_entry_point('nova==2013.2.a549.g4ce8f2a', 'console_scripts', 'nova-manage')()
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/cmd/manage.py", line 1292, in main
2013-05-09 14:44:07.926 TRACE nova     ret = fn(*fn_args, **fn_kwargs)
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/cmd/manage.py", line 652, in list
2013-05-09 14:44:07.926 TRACE nova     services = db.service_get_all(ctxt)
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/db/api.py", line 132, in service_get_all
2013-05-09 14:44:07.926 TRACE nova     return IMPL.service_get_all(context, disabled)
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 97, in wrapper
2013-05-09 14:44:07.926 TRACE nova     return f(*args, **kwargs)
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 362, in service_get_all
2013-05-09 14:44:07.926 TRACE nova     query = model_query(context, models.Service)
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 178, in model_query
2013-05-09 14:44:07.926 TRACE nova     session = kwargs.get('session') or get_session()
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/openstack/common/db/sqlalchemy/session.py", line 350, in get_session
2013-05-09 14:44:07.926 TRACE nova     engine = get_engine(sqlite_fk=sqlite_fk)
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/openstack/common/db/sqlalchemy/session.py", line 472, in get_engine
2013-05-09 14:44:07.926 TRACE nova     sqlite_fk=sqlite_fk)
2013-05-09 14:44:07.926 TRACE nova   File "/opt/stack/nova/nova/openstack/common/db/sqlalchemy/session.py", line 531, in create_engine
2013-05-09 14:44:07.926 TRACE nova     connection_dict = sqlalchemy.engine.url.make_url(sql_connection)
2013-05-09 14:44:07.926 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 178, in make_url
2013-05-09 14:44:07.926 TRACE nova     return _parse_rfc1738_args(name_or_url)
2013-05-09 14:44:07.926 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 219, in _parse_rfc1738_args
2013-05-09 14:44 ...
(more)