[openstack-dev] [tricircle] Playing Tricircle with Devstack

joehuang joehuang at huawei.com
Wed Jan 27 00:11:08 UTC 2016


Hi, Yipei,

have you installed two nodes devstack successfully or not? This error is occurred during or after the installation?

If you have installed them successfully, then Volume type is not supported in Cinder-apigw yet (you can help to implement it ☺ ). You can use –os-region-name Pod2 parameter If you are want to create volume type in Pod2.

Best Regards
Chaoyi Huang ( Joe Huang )

From: Yipei Niu [mailto:newypei at gmail.com]
Sent: Tuesday, January 26, 2016 8:42 PM
To: openstack-dev at lists.openstack.org
Subject: Re: [openstack-dev] [tricircle] Playing Tricircle with Devstack

Hi Zhiyuan,

Your solution works, but I encountered another error. When executing command

"openstack volume type create --property volume_backend_name=lvmdriver-1 lvmdriver-1",

it returns

"Unable to establish connection to http://192.168.56.101:19997/v2/c4f6ad92427b49f9a59810e88fbe4c11/types".


Then I execute the command with debug option, it returns

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 113, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 255, in run
    result = self.run_subcommand(remainder)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 367, in run_subcommand
    self.prepare_to_run_command(cmd)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 352, in prepare_to_run_command
    self.client_manager.auth_ref
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 189, in auth_ref
    self.setup_auth()
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 128, in setup_auth
    auth.check_valid_auth_options(self._cli_options, self.auth_plugin_name)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/auth.py", line 172, in check_valid_auth_options
    raise exc.CommandError('Missing parameter(s): \n%s' % msg)
CommandError: Missing parameter(s):
Set a username with --os-username, OS_USERNAME, or auth.username
Set an authentication URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url
Set a scope, such as a project or domain, set a project scope with --os-project-name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name

These parameters have been set before, and why the error happens?

Best regards,
Yipei


On Tue, Jan 26, 2016 at 10:40 AM, Yipei Niu <newypei at gmail.com<mailto:newypei at gmail.com>> wrote:
Hi Joe, Zhiyuan,

I found that such an error may be caused by "export OS_REGION_NAME=Pod2". When I source "userrc_early" without "export OS_REGION_NAME=Pod2" on node2, the command "openstack project show admin -f value -c id" returns the same result as it does on node1. How can I deal with it so that I can proceed?

Best regards,
Yipei

On Mon, Jan 25, 2016 at 4:13 PM, Yipei Niu <newypei at gmail.com<mailto:newypei at gmail.com>> wrote:
There doesn't any problems when installing devstack on node1. However, when install devstack to node2, I encounter an error and the trace is as follows:

2016-01-25 07:40:47.068 | + echo -e Starting Keystone
2016-01-25 07:40:47.069 | + '[' 192.168.56.101 == 192.168.56.102 ']'
2016-01-25 07:40:47.070 | + is_service_enabled tls-proxy
2016-01-25 07:40:47.091 | + return 1
2016-01-25 07:40:47.091 | + cat
2016-01-25 07:40:47.093 | + source /home/stack/devstack/userrc_early
2016-01-25 07:40:47.095 | ++ export OS_IDENTITY_API_VERSION=3
2016-01-25 07:40:47.095 | ++ OS_IDENTITY_API_VERSION=3
2016-01-25 07:40:47.095 | ++ export OS_AUTH_URL=http://192.168.56.101:35357
2016-01-25 07:40:47.095 | ++ OS_AUTH_URL=http://192.168.56.101:35357
2016-01-25 07:40:47.095 | ++ export OS_USERNAME=admin
2016-01-25 07:40:47.095 | ++ OS_USERNAME=admin
2016-01-25 07:40:47.095 | ++ export OS_USER_DOMAIN_ID=default
2016-01-25 07:40:47.095 | ++ OS_USER_DOMAIN_ID=default
2016-01-25 07:40:47.096 | ++ export OS_PASSWORD=nypnyp0316
2016-01-25 07:40:47.096 | ++ OS_PASSWORD=nypnyp0316
2016-01-25 07:40:47.096 | ++ export OS_PROJECT_NAME=admin
2016-01-25 07:40:47.097 | ++ OS_PROJECT_NAME=admin
2016-01-25 07:40:47.098 | ++ export OS_PROJECT_DOMAIN_ID=default
2016-01-25 07:40:47.099 | ++ OS_PROJECT_DOMAIN_ID=default
2016-01-25 07:40:47.100 | ++ export OS_REGION_NAME=Pod2
2016-01-25 07:40:47.101 | ++ OS_REGION_NAME=Pod2
2016-01-25 07:40:47.102 | + create_keystone_accounts
2016-01-25 07:40:47.105 | + local admin_tenant
2016-01-25 07:40:47.111 | ++ openstack project show admin -f value -c id
2016-01-25 07:40:48.408 | Could not find resource admin
2016-01-25 07:40:48.452 | + admin_tenant=
2016-01-25 07:40:48.453 | + exit_trap
2016-01-25 07:40:48.454 | + local r=1
2016-01-25 07:40:48.456 | ++ jobs -p
2016-01-25 07:40:48.461 | + jobs=
2016-01-25 07:40:48.464 | + [[ -n '' ]]
2016-01-25 07:40:48.464 | + kill_spinner
2016-01-25 07:40:48.464 | + '[' '!' -z '' ']'
2016-01-25 07:40:48.464 | + [[ 1 -ne 0 ]]
2016-01-25 07:40:48.464 | + echo 'Error on exit'
2016-01-25 07:40:48.464 | Error on exit
2016-01-25 07:40:48.464 | + generate-subunit 1453707531 117 fail
2016-01-25 07:40:48.885 | + [[ -z /opt/stack/logs ]]
2016-01-25 07:40:48.886 | + /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2016-01-25 07:40:48.944 | df: '/run/user/112/gvfs': Permission denied
2016-01-25 07:40:49.166 | + exit 1

Could you please give me some advice on solving it?


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


More information about the OpenStack-dev mailing list