[openstack-dev] question about OpenStack Python glance API -- list share image by tenant.

2017-09-20 Thread zhihao wang
Deal all


I have a question about the openstack python glance client api


I want to get the list of all the shared image by tenant , but don't know how 
to get the list..


I can only find out this, list sharing,  but when i use tenant, it did not 
work, showed some error "No tenant_id" attribute...

List 
Sharings¶

Describe sharing permissions by image or tenant:

glance.image_members.list(image_id)



Just like below in horizon, I want to get the share image with the tenant,..

Can anyone know how to get it using python api?

[cid:3f13f092-2295-4710-918f-8698b541475a]


Please help


Thanks

Wally
__
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] questions about Openstack Ocata replacement API

2017-03-18 Thread zhihao wang



Dear All


I am trying the new version openstack ocata in Ubuntu 1604

But I got some problem with nova placement API, there is nothing on the 
Openstack Ubuntu Installation Doc


and I google how to config this


and I found out this link

https://ask.openstack.org/en/question/102256/how-to-configure-placement-service-for-compute-node-on-ocata/

and I followed this link, but still not working, [☹]


 can anyone please help?

how to setup the placement API on ubuntu1604


I already have the endpoint, but it always said there is no placement API 
endpoint  , please see below


[cid:a2abec78-79bc-426b-a3ac-8012c7204560]


[cid:fdb68bc9-0098-48cf-bf6e-aa54a35f2821]



Thanks so much
Wally



--
Best wishes,

KaiRen.Bai (Kyle Bai)

[http://i.imgur.com/0fWEXzy.png]
迎棧科技股份有限公司
[http://i.imgur.com/X4GFugN.png]│   
kyl...@inwinstack.com
[http://i.imgur.com/Og5DOpM.png]│   
886-2-7738-2858 #7727
[http://i.imgur.com/6EYeN18.png]│   新北市220板橋區遠東路3號5樓C室
Rm.C, 5F., No.3, Yuandong Rd.,
Banqiao Dist., New Taipei City 220, Taiwan (R.O.C)




--
Best wishes,

KaiRen.Bai (Kyle Bai)

[http://i.imgur.com/0fWEXzy.png]
迎棧科技股份有限公司
[http://i.imgur.com/X4GFugN.png]│   
kyl...@inwinstack.com
[http://i.imgur.com/Og5DOpM.png]│   
886-2-7738-2858 #7727
[http://i.imgur.com/6EYeN18.png]│   新北市220板橋區遠東路3號5樓C室
Rm.C, 5F., No.3, Yuandong Rd.,
Banqiao Dist., New Taipei City 220, Taiwan (R.O.C)

__
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] questions about Openstack Ocata replacement API

2017-03-18 Thread zhihao wang
Dear All


I am trying the new version openstack ocata in Ubuntu 1604

But I got some problem with nova placement API, there is nothing on the 
Openstack Ubuntu Installation Doc


and I google how to config this


and I found out this link

https://ask.openstack.org/en/question/102256/how-to-configure-placement-service-for-compute-node-on-ocata/

and I followed this link, but still not working, [☹]


 can anyone please help?

how to setup the placement API on ubuntu1604


I already have the endpoint, but it always said there is no placement API 
endpoint  , please see below


[cid:a2abec78-79bc-426b-a3ac-8012c7204560]


[cid:fdb68bc9-0098-48cf-bf6e-aa54a35f2821]



Thanks so much
Wally



--
Best wishes,

KaiRen.Bai (Kyle Bai)

[http://i.imgur.com/0fWEXzy.png]
迎棧科技股份有限公司
[http://i.imgur.com/X4GFugN.png]│   
kyl...@inwinstack.com
[http://i.imgur.com/Og5DOpM.png]│   
886-2-7738-2858 #7727
[http://i.imgur.com/6EYeN18.png]│   新北市220板橋區遠東路3號5樓C室
Rm.C, 5F., No.3, Yuandong Rd.,
Banqiao Dist., New Taipei City 220, Taiwan (R.O.C)




--
Best wishes,

KaiRen.Bai (Kyle Bai)

[http://i.imgur.com/0fWEXzy.png]
迎棧科技股份有限公司
[http://i.imgur.com/X4GFugN.png]│   
kyl...@inwinstack.com
[http://i.imgur.com/Og5DOpM.png]│   
886-2-7738-2858 #7727
[http://i.imgur.com/6EYeN18.png]│   新北市220板橋區遠東路3號5樓C室
Rm.C, 5F., No.3, Yuandong Rd.,
Banqiao Dist., New Taipei City 220, Taiwan (R.O.C)

__
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] Questions about how to setup nova-lxd

2016-12-07 Thread zhihao wang
Hi All


I have installed openstack (Newton) on Ubuntu 16.04 on 4 Nodes, and I want to 
install and configure Nova-LXD on my exiting openstack, so that I can create 
and run Linux Container using LXD.


I am wondering is there anyone know how to setup this, and is there any user 
guide for this?


Appreciate your help Thanks


Thanks

Wally
__
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] Quesion about Openstack Magnum

2016-07-05 Thread zhihao wang
Dear Magnum team member

May I ask you some question about Magnum 
I have Openstack mistaka (1 controller and 2 compute nodes(I have installed all 
the components for Magnum, also install the lbaaS V2.
I have install the Magnum followed this guide 
http://docs.openstack.org/developer/magnum/install-guide-from-source.html
and then I try to use Magnum, but I am not sure how to use it to create k8s
when I try to list the bay model list, it return this, I source admin-openrc, 
but still the same..
root@controller:/var/lib/magnum/magnum# magnum 
--version2.0.0root@controller:/var/lib/magnum/magnum# magnum servie-listERROR: 
You must provide a tenant name or tenant id via --os-tenant-name, 
--os-tenant-id, env[OS_TENANT_NAME] or 
env[OS_TENANT_ID]root@controller:/var/lib/magnum/magnum# 
also , I saw lots of error from the magnum-api.log
2016-07-05 11:45:47.239 85426 WARNING oslo_reports.guru_meditation_report [-] 
Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward 
compatibility. SIGUSR1 will no longer be registered in a future release, so 
please use SIGUSR2 to generate reports.2016-07-05 11:45:47.240 85426 INFO 
magnum.api.app [-] Full WSGI config used: /etc/magnum/api-paste.ini2016-07-05 
11:45:47.303 85426 CRITICAL magnum [-] ConfigFileValueError: Value for option 
host is not valid: controller is not IPv4 or IPv6 address2016-07-05 
11:45:47.303 85426 ERROR magnum Traceback (most recent call last):2016-07-05 
11:45:47.303 85426 ERROR magnum   File "/var/lib/magnum/env/bin/magnum-api", 
line 10, in 2016-07-05 11:45:47.303 85426 ERROR magnum 
sys.exit(main())2016-07-05 11:45:47.303 85426 ERROR magnum   File 
"/var/lib/magnum/env/local/lib/python2.7/site-packages/magnum/cmd/api.py", line 
46, in main2016-07-05 11:45:47.303 85426 ERROR magnum host, port = 
cfg.CONF.api.host, cfg.CONF.api.port2016-07-05 11:45:47.303 85426 ERROR magnum  
 File 
"/var/lib/magnum/env/local/lib/python2.7/site-packages/oslo_config/cfg.py", 
line 3004, in __getattr__2016-07-05 11:45:47.303 85426 ERROR magnum return 
self._conf._get(name, self._group)2016-07-05 11:45:47.303 85426 ERROR magnum   
File 
"/var/lib/magnum/env/local/lib/python2.7/site-packages/oslo_config/cfg.py", 
line 2615, in _get2016-07-05 11:45:47.303 85426 ERROR magnum value = 
self._do_get(name, group, namespace)2016-07-05 11:45:47.303 85426 ERROR magnum  
 File 
"/var/lib/magnum/env/local/lib/python2.7/site-packages/oslo_config/cfg.py", 
line 2658, in _do_get2016-07-05 11:45:47.303 85426 ERROR magnum % 
(opt.name, str(ve)))2016-07-05 11:45:47.303 85426 ERROR magnum 
ConfigFileValueError: Value for option host is not valid: controller is not 
IPv4 or IPv6 address2016-07-05 11:45:47.303 85426 ERROR magnum ^C
I am wondering is there anything for configure the magnum?
thanks so much
wally 


















  __
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 Mitaka Neutron LBaaS Question

2016-07-01 Thread zhihao wang
Dear OpenStack Dev member:
May I ask you some question about neutron lbaaS? 
How to install the neutron LBaaS with Octavia in Mitaka?I followed these two 
guide ,but which one I should use? (My openstack is Mitaka , 1 controller, 2 
compute nodes)
https://wiki.openstack.org/wiki/Neutron/LBaaS/HowToRun  --  Ubuntu Packages 
Setuphttp://docs.openstack.org/mitaka/networking-guide/adv-config-lbaas.html  
-- Configuring LBaaS v2 with Octavia
Here is what I did:pip install octavia and then :vim /etc/neutron/neutron.conf
service_plugins = 
router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
[service_providers]service_provider = 
LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default
/etc/openstack-dashboard/local_settings.py
OPENSTACK_NEUTRON_NETWORK = {
'enable_lb': True
}
And then I restart all the neutron service and apache server  service 
neutron-server restart  service neutron-dhcp-agent restart  service 
neutron-metadata-agent restart  service neutron-l3-agent restart
but and then i ran the command neutron agent-list, it return this. I am 
wondering what is wrong with this? how can I install Neutron LaaS?
root@controller:~# neutron agent-listUnable to establish connection to 
http://controller:9696/v2.0/agents.json

Please help
Thanks so much
ThanksWally


  __
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 Neutron lbaas question

2016-06-23 Thread zhihao wang




Dear Openstack Team:
I have some questions regarding to openstack Mitaka Neutron lbaas 
For Neutron-lbaas installation, should I just follow this 
LINKhttps://wiki.openstack.org/wiki/Neutron/LBaaS/HowToRunbut my openstack has 
controller and compute nodes. is not installed by Devstack, it is manually 
installed on production environment (one controller and a few computed nodes) 
Can I install Neutron-lbaas on production environment , if I can, then what is 
the document guide?Thankswally   

  __
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 Neutron lbaas question

2016-06-22 Thread zhihao wang
Dear Openstack Team:
I have some questions regarding to openstack Mitaka Neutron lbaas 
For Neutron-lbaas installation, should I just follow this 
LINKhttps://wiki.openstack.org/wiki/Neutron/LBaaS/HowToRunbut my openstack has 
controller and compute nodes. is not installed by Devstack, it is manually 
installed on production environment (one controller and a few computed nodes) 
Can I install Neutron-lbaas on production environment , if I can, then what is 
the document guide?Thankswally   __
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] Quesion about Openstack Containers and Magnum

2016-06-11 Thread zhihao wang





Dear Openstack Dev Members:
I would like to install the Magnum on OpenStack to manage Docker Containers.I 
have a openstack Liberty production setup. one controller node, and a few 
compute nodes.
I am wondering how can I install Openstack Magnum on OpenStack Liberty on 
distributed production environment (1 controller node and some compute nodes)? 
I know I can install Magnum using desstack, but I dont want the developer 
version, 
Is there a way/guide to install it on production environment?
ThanksWally 
  __
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] Quesion about Openstack Containers and Magnum

2016-06-09 Thread zhihao wang
Dear Openstack Dev Members:
I would like to install the Magnum on OpenStack to manage Docker Containers.I 
have a openstack Liberty production setup. one controller node, and a few 
compute nodes.
I am wondering how can I install Openstack Magnum on OpenStack Liberty on 
distributed production environment (1 controller node and some compute nodes)? 
I know I can install Magnum using desstack, but I dont want the developer 
version, 
Is there a way/guide to install it on production environment?
ThanksWally   __
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] Questions about Openstack Mitaka Dashboard

2016-05-17 Thread zhihao wang
Dear OpenStack Dev Team

May I ask you some questions about the Openstakc Mitaka Horizon Dashboard?
I have followed the Openstack online installation document and your 
installation guide http://docs.openstack.org/mitaka/install-guide-ubuntu/
But after I installed the horizon, I cannot access the Horizon.  
It showed this following error.  I am not sure what was wrong. but I have 
followed the same steps, and installed the openstack Mitaka twice, but I still 
got the same problem again.
I user two physical servers, 1 controller and 1 compute node. All are Ubuntu 
14.04
I am not sure what was wrong, I followed the same steps on the documents. I 
think should be the apache configuration problem.
Could you please give me a hand on this? 
==Internal Server ErrorThe server encountered an internal error 
or misconfiguration and was unable to complete your request.Please contact the 
server administrator at webmaster@localhost to inform them of the time this 
error occurred, and the actions you performed just before this error.More 
information about this error may be available in the server error 
log.Apache/2.4.7 (Ubuntu) Server at 10.145.213.30 Port 80
Thanks a lotWally

  __
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