[openstack-dev] [nova] Refused to connect port 8774.

2018-03-23 Thread __ mango.
I run the openstack compute service list with the following error:

# openstack compute service list
Unable to establish connection to http://controller:8774/v2.1/os-services:
HTTPConnectionPool(host='controller', port=8774): 
Max retries exceeded with url: /v2.1/os-services (Caused by 
NewConnectionError(': 
Failed to establish a new connection: [Errno 111] 
\xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5',))

My port 8774 didn't work and restart the nova- API doesn't work.
Is there any way to solve this problem?  thank you.__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] 回复: [ceilometer] [gnocchi] keystone verification failed.

2018-03-20 Thread __ mango.
hi,
I have configured the following
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
exp​ort OS_PASSWORD=admin
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

/etc/gnocchi/gnocchi.conf
[DEFAULT]
[api]
auth_mode = keystone
[archive_policy]
[cors]
[healthcheck]
[incoming]
[indexer]
url = mysql+pymysql://gnocchi:gnocchi@controller/gnocchi
[keystone_authtoken]
auth_type = password
auth_url = http://controller:5000/v3
project_domain_name = default
user_domain_name = default
project_name = service
username = gnocchi
password = gnocchi
interface = internalURL
region_name = RegionOne
[metricd]
[oslo_middleware]
[oslo_policy]
[statsd]
[storage]
coordination_url = redis://controller:6379
file_basepath = /var/lib/gnocchi
driver = file

PS:
This  standard documents cannot install gnocchi  
(https://docs.openstack.org/ceilometer/pike/install/install-base-ubuntu.html#install-gnocchi),
  what should I do?
I have used the "admin" authentication, and the other components are normal 
except for gnocchi.




-- 原始邮件 --
发件人: "Julien Danjou"<jul...@danjou.info>;
发送时间: 2018年3月20日(星期二) 下午4:54
收件人: "__ mango."<935540...@qq.com>;
抄送: "openstack-dev"<openstack-dev@lists.openstack.org>; 
主题: Re: [openstack-dev] [ceilometer] [gnocchi] keystone verification failed.



On Tue, Mar 20 2018, __ mango. wrote:

> hi,
>  I have a question about the validation of gnocchi keystone.
>  I run the following command, but it is not successful.(api.auth_mode :basic, 
> basic mode can be 
>  # gnocchi status --debug
> REQ: curl -g -i -X GET http://localhost:8041/v1/status?details=False -H
> "Authorization: {SHA1}d4daf1cf567f14f32dbc762154b3a281b4ea4c62" -H "Accept:
> application/json, */*" -H "User-Agent: gnocchi keystoneauth1/3.1.0
> python-requests/2.18.1 CPython/2.7.12"
> Starting new HTTP connection (1): localhost
> http://localhost:8041 "GET /v1/status?details=False HTTP/1.1" 401 114
> RESP: [401] Content-Type: application/json Content-Length: 114 
> WWW-Authenticate: Keystone uri='http://controller:5000/v3' Connection: 
> Keep-Alive 
> RESP BODY: {"error": {"message": "The request you have made requires 
> authentication.", "code": 401, "title": "Unauthorized"}}
> The request you have made requires authentication. (HTTP 401)

You need to be authed as "admin" to get the status.

-- 
Julien Danjou
/* Free Software hacker
   https://julien.danjou.info */__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [ceilometer] [gnocchi] keystone verification failed.

2018-03-19 Thread __ mango.
hi??
 I have a question about the validation of gnocchi keystone.
 I run the following command, but it is not successful.(api.auth_mode :basic, 
basic mode can be 
 # gnocchi status --debug
REQ: curl -g -i -X GET http://localhost:8041/v1/status?details=False -H 
"Authorization: {SHA1}d4daf1cf567f14f32dbc762154b3a281b4ea4c62" -H "Accept: 
application/json, */*" -H "User-Agent: gnocchi keystoneauth1/3.1.0 
python-requests/2.18.1 CPython/2.7.12"
Starting new HTTP connection (1): localhost
http://localhost:8041 "GET /v1/status?details=False HTTP/1.1" 401 114
RESP: [401] Content-Type: application/json Content-Length: 114 
WWW-Authenticate: Keystone uri='http://controller:5000/v3' Connection: 
Keep-Alive 
RESP BODY: {"error": {"message": "The request you have made requires 
authentication.", "code": 401, "title": "Unauthorized"}}
The request you have made requires authentication. (HTTP 401)

Please help me, thank you very much.

Ps:
I have configured the following__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [gnocchi] gnocchi-keystone verification failed.

2018-03-15 Thread __ mango.
hi??The environment variable that you're talking about has been configured and 
the error has not gone away.




I was on OpenStack for the first time, can you be more specific? Thank you very 
much.









-- Original --
From:  "Julien Danjou"<jul...@danjou.info>;
Date:  Thu, Mar 15, 2018 04:48 PM
To:  "__ mango."<935540...@qq.com>;
Cc:  "openstack-dev"<openstack-dev@lists.openstack.org>; 
Subject:  Re: [openstack-dev] [gnocchi] gnocchi-keystone verification failed.



On Thu, Mar 15 2018, __ mango. wrote:

> I have a question about the validation of gnocchi keystone.

There's no question in your message.

> I run the following command, but it is not successful.(api.auth_mode :basic, 
> basic mode can be successful)
>
> # gnocchi status --debug
> REQ: curl -g -i -X GET http://localhost:8041/v1/status?details=False
> -H "Authorization: {SHA1}d4daf1cf567f14f32dbc762154b3a281b4ea4c62" -H
> "Accept: application/json, */*" -H "User-Agent: gnocchi
> keystoneauth1/3.1.0 python-requests/2.18.1 CPython/2.7.12"

There's no token in this request so Keystone auth won't work. You did
not set the environment variable OS_* correctly.

-- 
Julien Danjou
# Free Software hacker
# https://julien.danjou.info__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [gnocchi] gnocchi-keystone verification failed.

2018-03-14 Thread __ mango.
hi,
I have a question about the validation of gnocchi keystone.
I run the following command, but it is not successful.(api.auth_mode :basic, 
basic mode can be successful)

# gnocchi status --debug
REQ: curl -g -i -X GET http://localhost:8041/v1/status?details=False -H 
"Authorization: {SHA1}d4daf1cf567f14f32dbc762154b3a281b4ea4c62" -H "Accept: 
application/json, */*" -H "User-Agent: gnocchi keystoneauth1/3.1.0 
python-requests/2.18.1 CPython/2.7.12"
Starting new HTTP connection (1): localhost
http://localhost:8041 "GET /v1/status?details=False HTTP/1.1" 401 114
RESP: [401] Content-Type: application/json Content-Length: 114 
WWW-Authenticate: Keystone uri='http://192.168.12.244:5000/v3' Connection: 
Keep-Alive 
RESP BODY: {"error": {"message": "The request you have made requires 
authentication.", "code": 401, "title": "Unauthorized"}}

The request you have made requires authentication. (HTTP 401)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in 
run_subcommand
result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 113, in run
column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/v1/status_cli.py", 
line 23, in take_action
status = utils.get_client(self).status.get()
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/v1/status.py", 
line 21, in get
return self._get(self.url + '?details=%s' % details).json()
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/v1/base.py", line 
37, in _get
return self.client.api.get(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 288, 
in get
return self.request(url, 'GET', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/client.py", line 
52, in request
raise exceptions.from_response(resp, method)
Unauthorized: The request you have made requires authentication. (HTTP 401)
Traceback (most recent call last):
  File "/usr/local/bin/gnocchi", line 11, in 
sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/shell.py", line 
251, in main
return GnocchiShell().run(args)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in 
run_subcommand
result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 113, in run
column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/v1/status_cli.py", 
line 23, in take_action
status = utils.get_client(self).status.get()
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/v1/status.py", 
line 21, in get
return self._get(self.url + '?details=%s' % details).json()
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/v1/base.py", line 
37, in _get
return self.client.api.get(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 288, 
in get
return self.request(url, 'GET', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/client.py", line 
52, in request
raise exceptions.from_response(resp, method)
gnocchiclient.exceptions.Unauthorized: The request you have made requires 
authentication. (HTTP 401)__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [ceilometer][gnocchi]-gnocchi installation failed.

2018-03-14 Thread __ mango.
hi??
I refer to: 
https://docs.openstack.org/ceilometer/pike/install/install-base-ubuntu.html to 
install gnocchi,
Operation (apt-get installed gnocchi-api gnocchi-gnocchiclient),
When I tried to launch the gnocc-api, I got the message.
No gnocchi- API starts. Service :gnocchi-api unit. The service was not found.
I checked /etc/init.d and no script gnocchi-api(although gnocchi-metricd is, 
and it works).
Why is that? Please help me to solve this problem. Thank you very much.__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] OpenStack - Install gnocchi error.

2018-03-13 Thread __ mango.
After the installation (apt-get install gnocchi-api gnocchi- gnocchiclient),
When I tried to launch the gnocc-api, I got the message.
   Failed to start gnocchi-api. Service: Unit gnocchi-api. Service not found.
I checked /etc/init.d and there is no script gnocchi-api (although 
gnocchi-metricd is, and it's working properly).

Why is that? Please help me to solve it. Thank you.



-- Original --
From:  "Julien Danjou"<jul...@danjou.info>;
Date:  Tue, Mar 13, 2018 05:55 PM
To:  "__ mango."<935540...@qq.com>;
Cc:  "openstack-dev"<openstack-dev@lists.openstack.org>; 
Subject:  Re: [openstack-dev] OpenStack - Install gnocchi error.



On Tue, Mar 13 2018, __ mango. wrote:

> hi,
> I refer to: 
> https://docs.openstack.org/ceilometer/pike/install/install-base-ubuntu.html 
> installation gnocchi, 
> unable to find gnocchi - API related services is this why?
> Please help answer my question, thank you!

Can you provide more details as what's your problem? thank you!

-- 
Julien Danjou
// Free Software hacker
// https://julien.danjou.info__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] OpenStack - Install gnocchi error.

2018-03-13 Thread __ mango.
hi,
I refer to: 
https://docs.openstack.org/ceilometer/pike/install/install-base-ubuntu.html 
installation gnocchi, 
unable to find gnocchi - API related services is this why?
Please help answer my question, thank you!__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev