[Openstack] Create VMs with Power architecture(ppc64) on OpenStack running on x86_64 nodes??

2018-11-19 Thread Yedhu Sastri
Hello All,

I have some use-cases which I want to test in PowerPC architecture(ppc64).
As I dont have any Power machines I would like to try it with ppc64 VM's.
Is it possible to run these kind of VM's on my OpenStack cluster(Queens)
which runs on X86_64 architecture nodes(OS RHEL 7)??

I set the image property architecture=ppc64 to the ppc64 image I uploaded
to glance but no success in launching VM with those images. I am using KVM
as hypervisor(qemu 2.10.0) in my compute nodes and I think it is not built
to support power architecture. For testing without OpenStack I manually
built qemu on a x86_64 host with ppc64 support(qemu-ppc64) and then I am
able to host the ppc64 VM. But I dont know how to do this on my OpenStack
cluster. Whether I need to manually build qemu on compute nodes with ppc64
support or I need to add some lines in my nova.conf to do this?? Any help
to solve this issue would be much appreciated.

-- 

Thank you for your time and have a nice day,


With kind regards,
Yedhu Sastri
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Create VMs with Power architecture(ppc64) on OpenStack running on x86_64 nodes??

2018-11-19 Thread Ken D'Ambrosio
On 2018-11-19 11:25, Yedhu Sastri wrote:

> Hello All, 
> 
> I have some use-cases which I want to test in PowerPC architecture(ppc64). As 
> I dont have any Power machines I would like to try it with ppc64 VM's. Is it 
> possible to run these kind of VM's on my OpenStack cluster(Queens) which runs 
> on X86_64 architecture nodes(OS RHEL 7)??

I'm not 100% sure, but I'm 95% sure that the answer to your question is
"No."  While there's much emulation that occurs, the CPU isn't so much
emulated, but more abstracted.  Constructing and running a modern CPU in
software would be non-trivial. 

-Ken 

> I set the image property architecture=ppc64 to the ppc64 image I uploaded to 
> glance but no success in launching VM with those images. I am using KVM as 
> hypervisor(qemu 2.10.0) in my compute nodes and I think it is not built to 
> support power architecture. For testing without OpenStack I manually built 
> qemu on a x86_64 host with ppc64 support(qemu-ppc64) and then I am able to 
> host the ppc64 VM. But I dont know how to do this on my OpenStack cluster. 
> Whether I need to manually build qemu on compute nodes with ppc64 support or 
> I need to add some lines in my nova.conf to do this?? Any help to solve this 
> issue would be much appreciated.
> 
> -- 
> 
> Thank you for your time and have a nice day, 
> 
> With kind regards, Yedhu Sastri 
> ___
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [openstack-dev] Create VMs with Power architecture(ppc64) on OpenStack running on x86_64 nodes??

2018-11-19 Thread Rafael Folco
(not sure if my answer has been sent, sorry if duplicate)
I don't touch ppc for a while but AFAIK this should work as long as you run
full emulation (qemu, not kvm) as libvirt_type in nova.conf and get the
qemu-system-ppc64le installed in the compute node. Assume also you get the
ppc64le image to launch your instance. Expect poor performance though.

On Mon, Nov 19, 2018 at 4:12 PM Sean Mooney  wrote:

> adding openstack dev.
> On Mon, 2018-11-19 at 18:08 +, Sean Mooney wrote:
> > On Mon, 2018-11-19 at 11:57 -0500, Ken D'Ambrosio wrote:
> > > On 2018-11-19 11:25, Yedhu Sastri wrote:
> > > > Hello All,
> > > >
> > > > I have some use-cases which I want to test in PowerPC
> architecture(ppc64). As I dont have any Power machines I
> > > > would
> > > > like to try it with ppc64 VM's. Is it possible to run these kind of
> VM's on my OpenStack cluster(Queens) which
> > > > runs
> > > > on X86_64 architecture nodes(OS RHEL 7)??
> > > >
> > >
> > > I'm not 100% sure, but I'm 95% sure that the answer to your question
> is "No."  While there's much emulation that
> > > occurs, the CPU isn't so much emulated, but more abstracted.
> Constructing and running a modern CPU in software
> > > would
> > > be non-trivial.
> >
> > you can do this but not with kvm.
> > you need to revert the virt dirver in the nova.conf back to qemu to
> disable kvm to allow emulation of other
> > plathforms.
> > that said i have only emulated power on x86_64 using libvirt or qemu
> idrectly never with openstack but i belive we
> > used
> > to support this i just hav enot done it personally.
> > >
> > > -Ken
> > >
> > > > I set the image property architecture=ppc64 to the ppc64 image I
> uploaded to glance but no success in launching VM
> > > > with those images. I am using KVM as hypervisor(qemu 2.10.0) in my
> compute nodes and I think it is not built to
> > > > support power architecture. For testing without OpenStack I manually
> built qemu on a x86_64 host with ppc64
> > > > support(qemu-ppc64) and then I am able to host the ppc64 VM. But I
> dont know how to do this on my OpenStack
> > > > cluster.
> > > > Whether I need to manually build qemu on compute nodes with ppc64
> support or I need to add some lines in my
> > > > nova.conf to do this?? Any help to solve this issue would be much
> appreciated.
> > > >
> > > >
> > > > --
> > > > Thank you for your time and have a nice day,
> > > >
> > > > With kind regards,
> > > > Yedhu Sastri
> > > >
> > > > ___
> > > > Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > > > Post to : openstack@lists.openstack.org
> > > > Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > >
> > > ___
> > > Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > > Post to : openstack@lists.openstack.org
> > > Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
> __
> 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
>


-- 
Rafael Folco
Senior Software Engineer
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [openstack-dev] Create VMs with Power architecture(ppc64) on OpenStack running on x86_64 nodes??

2018-11-19 Thread Sean Mooney
On Mon, 2018-11-19 at 17:25 -0200, Rafael Folco wrote:
> (not sure if my answer has been sent, sorry if duplicate)
> I don't touch ppc for a while but AFAIK this should work as long as you run 
> full emulation (qemu, not kvm) as
> libvirt_type in nova.conf and get the qemu-system-ppc64le installed in the 
> compute node. Assume also you get the
> ppc64le image to launch your instance. Expect poor performance though.
that is my understanding also.
the perfromace is accepable but not great if you can enabled the multithread 
tcg backend instead of the default
singel tread tcg backend that is used when in qemu only mode but it still wont 
match kvm accleration or power on power
performance.

i dont think we have a way to enabel the multi thread accleration for qemu only 
backend via nova unfortunetly
it would be triavial to add but no one has asked as far as i am aware.

> 
> On Mon, Nov 19, 2018 at 4:12 PM Sean Mooney  wrote:
> > adding openstack dev.
> > On Mon, 2018-11-19 at 18:08 +, Sean Mooney wrote:
> > > On Mon, 2018-11-19 at 11:57 -0500, Ken D'Ambrosio wrote:
> > > > On 2018-11-19 11:25, Yedhu Sastri wrote:
> > > > > Hello All,
> > > > > 
> > > > > I have some use-cases which I want to test in PowerPC 
> > > > > architecture(ppc64). As I dont have any Power machines I
> > > > > would
> > > > > like to try it with ppc64 VM's. Is it possible to run these kind of 
> > > > > VM's on my OpenStack cluster(Queens) which
> > > > > runs
> > > > > on X86_64 architecture nodes(OS RHEL 7)??
> > > > > 
> > > > 
> > > > I'm not 100% sure, but I'm 95% sure that the answer to your question is 
> > > > "No."  While there's much emulation that
> > > > occurs, the CPU isn't so much emulated, but more abstracted.  
> > > > Constructing and running a modern CPU in software
> > > > would
> > > > be non-trivial.
> > > 
> > > you can do this but not with kvm.
> > > you need to revert the virt dirver in the nova.conf back to qemu to 
> > > disable kvm to allow emulation of other
> > > plathforms.
> > > that said i have only emulated power on x86_64 using libvirt or qemu 
> > > idrectly never with openstack but i belive we
> > > used
> > > to support this i just hav enot done it personally.
> > > > 
> > > > -Ken
> > > > 
> > > > > I set the image property architecture=ppc64 to the ppc64 image I 
> > > > > uploaded to glance but no success in
> > launching VM
> > > > > with those images. I am using KVM as hypervisor(qemu 2.10.0) in my 
> > > > > compute nodes and I think it is not built
> > to
> > > > > support power architecture. For testing without OpenStack I manually 
> > > > > built qemu on a x86_64 host with ppc64
> > > > > support(qemu-ppc64) and then I am able to host the ppc64 VM. But I 
> > > > > dont know how to do this on my OpenStack
> > > > > cluster.
> > > > > Whether I need to manually build qemu on compute nodes with ppc64 
> > > > > support or I need to add some lines in my
> > > > > nova.conf to do this?? Any help to solve this issue would be much 
> > > > > appreciated.
> > > > > 
> > > > >  
> > > > > -- 
> > > > > Thank you for your time and have a nice day,
> > > > >  
> > > > > With kind regards,
> > > > > Yedhu Sastri
> > > > > 
> > > > > ___
> > > > > Mailing list: 
> > > > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > > > > Post to : openstack@lists.openstack.org
> > > > > Unsubscribe : 
> > > > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > > > 
> > > > ___
> > > > Mailing list: 
> > > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > > > Post to : openstack@lists.openstack.org
> > > > Unsubscribe : 
> > > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > 
> > __
> > 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 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

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Create VMs with Power architecture(ppc64) on OpenStack running on x86_64 nodes??

2018-11-19 Thread Chris Friesen

On 11/19/2018 10:25 AM, Yedhu Sastri wrote:

Hello All,

I have some use-cases which I want to test in PowerPC 
architecture(ppc64). As I dont have any Power machines I would like to 
try it with ppc64 VM's. Is it possible to run these kind of VM's on my 
OpenStack cluster(Queens) which runs on X86_64 architecture nodes(OS 
RHEL 7)??


I set the image property architecture=ppc64 to the ppc64 image I 
uploaded to glance but no success in launching VM with those images. I 
am using KVM as hypervisor(qemu 2.10.0) in my compute nodes and I think 
it is not built to support power architecture. For testing without 
OpenStack I manually built qemu on a x86_64 host with ppc64 
support(qemu-ppc64) and then I am able to host the ppc64 VM. But I dont 
know how to do this on my OpenStack cluster. Whether I need to manually 
build qemu on compute nodes with ppc64 support or I need to add some 
lines in my nova.conf to do this?? Any help to solve this issue would be 
much appreciated.


I think that within an OpenStack cluster you'd have to dedicate a whole 
compute node to running ppc64 and have it advertise the architecture as 
ppc64.  Then when you ask for "architecture=ppc64" it should land on 
that node.


If this is for "development, testing or migration of applications to 
Power" have you checked out these people?  They provide free Power VMs.


http://openpower.ic.unicamp.br/minicloud/

Chris

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Create VMs with Power architecture(ppc64) on OpenStack running on x86_64 nodes??

2018-11-19 Thread Sean Mooney
On Mon, 2018-11-19 at 14:48 -0600, Chris Friesen wrote:
> On 11/19/2018 10:25 AM, Yedhu Sastri wrote:
> > Hello All,
> > 
> > I have some use-cases which I want to test in PowerPC 
> > architecture(ppc64). As I dont have any Power machines I would like to 
> > try it with ppc64 VM's. Is it possible to run these kind of VM's on my 
> > OpenStack cluster(Queens) which runs on X86_64 architecture nodes(OS 
> > RHEL 7)??
> > 
> > I set the image property architecture=ppc64 to the ppc64 image I 
> > uploaded to glance but no success in launching VM with those images. I 
> > am using KVM as hypervisor(qemu 2.10.0) in my compute nodes and I think 
> > it is not built to support power architecture. For testing without 
> > OpenStack I manually built qemu on a x86_64 host with ppc64 
> > support(qemu-ppc64) and then I am able to host the ppc64 VM. But I dont 
> > know how to do this on my OpenStack cluster. Whether I need to manually 
> > build qemu on compute nodes with ppc64 support or I need to add some 
> > lines in my nova.conf to do this?? Any help to solve this issue would be 
> > much appreciated.
> 
> I think that within an OpenStack cluster you'd have to dedicate a whole 
> compute node to running ppc64 and have it advertise the architecture as 
> ppc64.  Then when you ask for "architecture=ppc64" it should land on 
> that node.
you know it says it for arm but you might be able to do this by setting 
hw_machine_type 
https://github.com/openstack/glance/blob/master/etc/metadefs/compute-libvirt-image.json#L34
i know you can set the hw_machine_type to set teh default for all instace on a 
host
https://docs.openstack.org/nova/latest/configuration/config.html#libvirt.hw_machine_type
but i can rememebr it image property is alys used or if its just used for arm 
as the docs suggest.

the hypervisor_type in the image should be set to qemu to make sure you avoid 
the kvm hosts as they will not work
for cpu emulation.


> 
> If this is for "development, testing or migration of applications to 
> Power" have you checked out these people?  They provide free Power VMs.
> 
> http://openpower.ic.unicamp.br/minicloud/
> 
> Chris
> 
> ___
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] how to sync quota usage our of sync in Rocky release

2018-11-19 Thread Manuel Sopena Ballesteros
Dear Openstack community,

I often have nova complaining that I have exceeded my quota, these normally 
happens when I node deployment fails and the resources allocated hasn't been 
released. Before Rocky I used to run the command below to resync, however it 
looks like it has been removed from Rocky.

[root@TEST-openstack-controller ~]# docker exec -it -u root nova_scheduler 
nova-manage project quota_usage_refresh --project 
abc29399b91d423088549d7446766573 --user 02132c31dafa4d1d939bd52e0420b975
usage: nova-manage [-h] [--config-dir DIR] [--config-file PATH] [--debug]
   [--log-config-append PATH] [--log-date-format DATE_FORMAT]
   [--log-dir LOG_DIR] [--log-file PATH] [--nodebug]
   [--nopost-mortem] [--nouse-journal] [--nouse-json]
   [--nouse-syslog] [--nowatch-log-file] [--post-mortem]
   [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal]
   [--use-json] [--use-syslog] [--version] [--watch-log-file]
   [--remote_debug-host REMOTE_DEBUG_HOST]
   [--remote_debug-port REMOTE_DEBUG_PORT]

   
{version,bash-completion,placement,network,cell_v2,db,cell,floating,api_db}
   ...
nova-manage: error: argument category: invalid choice: 'project' (choose from 
'version', 'bash-completion', 'placement', 'network', 'cell_v2', 'db', 'cell', 
'floating', 'api_db')

Any idea how can I refresh the quota usage in Rocky?

Thank you very much

Manuel Sopena Ballesteros | Big data Engineer
Garvan Institute of Medical Research
The Kinghorn Cancer Centre, 370 Victoria Street, Darlinghurst, NSW 2010
T: + 61 (0)2 9355 5760 | F: +61 (0)2 9295 8507 | E: 
manuel...@garvan.org.au

NOTICE
Please consider the environment before printing this email. This message and 
any attachments are intended for the addressee named and may contain legally 
privileged/confidential/copyright information. If you are not the intended 
recipient, you should not read, use, disclose, copy or distribute this 
communication. If you have received this message in error please notify us at 
once by return email and then delete both messages. We accept no liability for 
the distribution of viruses or similar in electronic communications. This 
notice should not be removed.
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack