[Bug 1698846] [NEW] [ppc64el] Hugepages w/ split-core freezes cpu

2017-06-19 Thread Rafael Folco
Public bug reported:

Hugepages + split-core + NUMA + pinned CPUs make a simple apt-get
install for multiple packages to hang the CPU. Killing the process and
re-running the command would work (the packages are installed).
Installing single packages also works fine, so it only happens for
multiple packages.

Reproduce
=
- reboot host
- ppc64_cpu --smt=on
- ppc64_cpu --sub-cores-per-core=4
-- ppc64_cpu --smt=off
- for i in 0 1 16 17; do echo 1300 > 
/sys/devices/system/node/node$i/hugepages/hugepages-16384kB/nr_hugepages; done
- for s in libvirt-bin nova-compute nova-api; do service $s restart; done
- created a vm with the following config:
...
  8
  
8192









  
  


  
...
  



  

  
...
- apt-get install   ...
- cpu hangs, 100% busy

apt-get
===

sudo DEBIAN_FRONTEND=noninteractive http_proxy= https_proxy= no_proxy=
apt-get --option Dpkg::Options::=--force-confold --assume-yes install
apache2 apache2-dev bc bridge-utils bsdmainutils curl g++ gcc gettext
git graphviz iputils-ping libapache2-mod-proxy-uwsgi libffi-dev libjpeg-
dev libmysqlclient-dev libpq-dev libssl-dev libsystemd-dev libxml2-dev
libxslt1-dev libyaml-dev lsof openssh-server openssl pkg-config psmisc
python2.7 python-dev python-gdbm screen tar tcpdump unzip uuid-runtime
wget wget zlib1g-dev lvm2 open-iscsi qemu-utils thin-provisioning-tools
lvm2 open-iscsi qemu-utils thin-provisioning-tools dstat libkrb5-dev
libldap2-dev libsasl2-dev memcached python-mysqldb sqlite3 conntrack
curl dnsmasq-base dnsmasq-utils ebtables gawk genisoimage iptables
iputils-arping kpartx libjs-jquery-tablesorter libmysqlclient-dev parted
pm-utils python-mysqldb socat sqlite3 sudo vlan cryptsetup genisoimage
gir1.2-libosinfo-1.0 netcat-openbsd open-iscsi qemu-utils sg3-utils
sysfsutils ipset acl dnsmasq-base ebtables haproxy iptables iputils-
arping iputils-ping libmysqlclient-dev postgresql-server-dev-all python-
mysqldb sqlite3 sudo vlan conntrack conntrackd keepalived curl
liberasurecode-dev make memcached sqlite3 xfsprogs


top
===

 PID USER  PR  NIVIRTRESSHR S  %CPU %MEM TIME+ COMMAND
13231 root  20   0   40192  33792   6848 R 100.0  0.3   1:02.68 apt-get


strace
==
... 
= 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7883, si_uid=0, 
si_status=0, si_utime=0, si_stime=0} ---
close(16)   = 0
waitpid(7883, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 7883
stat("/var/lib/dpkg/status", {st_mode=S_IFREG|0644, st_size=818492, ...}) = 0
stat("/var/lib/dpkg/status", {st_mode=S_IFREG|0644, st_size=818492, ...}) = 0
open("/var/lib/dpkg/status", O_RDONLY)  = 16
fcntl(16, F_SETFD, FD_CLOEXEC)  = 0
read(16, "Package: python-apt-common\nStatus: install ok installed\nPriority: 
optional\nSection: python\nInstalled-Size: 244\nMaintainer: Ubuntu Developers 
\nArchitecture: all\nSource: 
python-apt\nVersion: 1.1.0~beta1build1\nReplaces: python-apt (<< 
0.7.98+nmu1)\nDepends: python | python3\nBreaks: python-apt (<< 
0.7.98+nmu1)\nEnhances: python-apt, python3-apt\nDescription: Python interface 
to libapt-pkg (locales)\n The apt_pkg Python interface will provide full access 
to the internal\n libapt-pkg structures allowing Python programs to easily 
perform a\n variety of functions.\n .\n This package contains 
locales.\nOriginal-Maintainer: APT Development Team 
\n\nPackage: node-lockfile\nStatus: install ok 
installed\nPriority: extra\nSection: web\nInstalled-Size: 43\nMaintainer: 
Ubuntu Developers \nArchitecture: 
all\nVersion: 0.4.1-1\nDepends: nodejs\nDescription: Asynchronous file lock mod
 ule for Node.js\n This module provides asynchronous and synchronous concurrent 
file\n locking. It supports timeouts, expirations, and retrying upon failure.\n 
.\n Node.js is an event-based server-side javascript 
engine.\nOriginal-Maintainer: Debian Javascript Maintainers 
\nHomepage: 
https://github.com/isaacs/lockfile\n\nPackage: libgtk2.0-bin\nStatus: install 
ok installed\nPriority: optional\nSection: misc\nInstalled-Size: 
80\nMaintainer: Ubuntu Desktop Team 
\nArchitecture: ppc64el\nMulti-Arch: 
foreign\nSource: gtk+2.0\nVersion: 2.24.30-1ubuntu1\nDepends: libgtk2.0-0 (= 
2.24.30-1ubuntu1), libgtk2.0-common\nDescription: programs for the GTK+ 
graphical user interface library\n GTK+ is a multi-platform toolkit for 
creating graphical user\n interfaces. Offering a complete set of widgets, GTK+ 
is suitable\n for projects ranging from small one-off tools to complete 
application\n suites.\n .\n This package conta
 ins the utilities which are used by the libraries\n and other 
packages.\nHomepage: http://www.gtk.org/\nOriginal-Maintain;..., 32771) = 32771
fstat(16, {st_mode=S_IFREG|0644, st_size=818492, ...}) = 0

[Bug 1664622] Re: qemu: Missing transaction memory advertisement

2017-03-27 Thread Rafael Folco
Yep, makes sense. 
If 16.04.2 works as stated above, the job is done here.
Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1664622

Title:
  qemu: Missing transaction memory advertisement

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1664622/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1664622] Re: qemu: Missing transaction memory advertisement

2017-02-23 Thread Rafael Folco
@Christian, good catch. I apologize for reporting a false positive.
Looks like all what matters is the kernel version. 

I was able to boot new ISO images with regular qemu provided, but failed
to boot old ISOs.

I've used this one 
http://ports.ubuntu.com/ubuntu-ports/dists/xenial-updates/main/installer-ppc64el/current/images/netboot/mini.iso.
2017-02-15 14:0564M

With the current iso, it works.


Still getting HTM exception with old iso... even updating to new qemu from ppa:

http://ports.ubuntu.com/ubuntu-ports/dists/xenial-updates/main/installer-ppc64el/20101020ubuntu451.6/images/netboot/mini.iso
2016-10-12 12:3262M

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1664622

Title:
  qemu: Missing transaction memory advertisement

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1664622/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1664622] Re: qemu: Missing transaction memory advertisement

2017-02-22 Thread Rafael Folco
Christian,

I just tested Xenial's ppa[1] and confirm it works.
[1] https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/2502

Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1664622

Title:
  qemu: Missing transaction memory advertisement

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1664622/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1660946] Re: [nested] virt-install falls to SLOF

2017-02-07 Thread Rafael Folco
Yep, for some reason, the discussion stalled.
Thanks for working on this bug. HTM bits should be cleared on nested virt, 
anyway.
Also, HTM is causing other components to fail on nested virt like rtas_errd 
daemon, which does PCI Hotplug.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1660946

Title:
  [nested] virt-install falls to SLOF

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1660946/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1660946] Re: [nested] virt-install falls to SLOF

2017-02-07 Thread Rafael Folco
kvm_pr is not "officially/fully/formally" supported for production use,
but this mode is extensively used by OpenStack Continuous Integration
and it is the testing ground for many other projects. This statement of
"not supported" has been changing and Power ecosystem depends on kvm_pr
for platform enablement efforts.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1660946

Title:
  [nested] virt-install falls to SLOF

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1660946/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1634129] Re: Couldn't emulate instruction 0x7813427c

2017-01-20 Thread Rafael Folco
Seems to be FIXED, tested linux-image-4.4.0-62-generic/xenial-proposed.

I could not reproduce the hang with the version 4.4.0-62.83 from xenial-
proposed, so I assume the issue has been fixed. I confirm that I am able
to boot nested VMs with the kernel above from 4.4 release.

root@bug-147569:~# uname -a
Linux bug-147569 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:09:19 UTC 2017 
ppc64le ppc64le ppc64le GNU/Linux

--
Installed with:
 apt-get install linux-image-4.4.0-62-generic/xenial-proposed
linux-image-4.4.0-62-generic is already the newest version (4.4.0-62.83).
Selected version '4.4.0-62.83' (Ubuntu:16.04/xenial-proposed [ppc64el]) for 
'linux-image-4.4.0-62-generic'

** Tags removed: verification-needed-xenial
** Tags added: verification-done-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1634129

Title:
  Couldn't emulate instruction 0x7813427c

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1634129/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1527341] [NEW] euca-bundle-image does not support ppc64le arch

2015-12-17 Thread Rafael Folco
Public bug reported:

2015-12-17 09:23:00.365 | ++ euca-bundle-image -r ppc64le -i 
/opt/stack/new/devstack/files/images/cirros-d150604-ppc64le-uec/cirros-d150604-ppc64le-vmlinuz
 --kernel true -d 
/opt/stack/new/devstack/files/images/s3-materials/cirros-d150604
2015-12-17 09:23:00.554 | usage: euca-bundle-image -i FILE [-p PREFIX] [-d DIR] 
-r
2015-12-17 09:23:00.555 |  
{i386,x86_64,armhf,ppc,ppc64} [-k FILE] [-c FILE]
2015-12-17 09:23:00.555 |  [--ec2cert FILE] [-u 
ACCOUNT] [--kernel IMAGE]
2015-12-17 09:23:00.555 |  [--ramdisk IMAGE]
2015-12-17 09:23:00.555 |  [-B 
VIRTUAL1=DEVICE1,VIRTUAL2=DEVICE2,...]
2015-12-17 09:23:00.555 |  [--productcodes 
CODE1,CODE2,...]
2015-12-17 09:23:00.555 |  [--image-size IMAGE_SIZE] 
[--region USER@REGION]
2015-12-17 09:23:00.555 |  [--debug] [--debugger] 
[--version] [-h]
2015-12-17 09:23:00.555 | euca-bundle-image: error: argument -r/--arch: invalid 
choice: 'ppc64le' (choose from 'i386', 'x86_64', 'armhf', 'ppc', 'ppc64')


Required for Devstack (under lib/tempest) to upload and configure CirrOS image 
for ppc64le (Power Little-Endian) architecture.

** Affects: euca2ools (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in Ubuntu.
https://bugs.launchpad.net/bugs/1527341

Title:
  euca-bundle-image does not support ppc64le arch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/euca2ools/+bug/1527341/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1527341] [NEW] euca-bundle-image does not support ppc64le arch

2015-12-17 Thread Rafael Folco
Public bug reported:

2015-12-17 09:23:00.365 | ++ euca-bundle-image -r ppc64le -i 
/opt/stack/new/devstack/files/images/cirros-d150604-ppc64le-uec/cirros-d150604-ppc64le-vmlinuz
 --kernel true -d 
/opt/stack/new/devstack/files/images/s3-materials/cirros-d150604
2015-12-17 09:23:00.554 | usage: euca-bundle-image -i FILE [-p PREFIX] [-d DIR] 
-r
2015-12-17 09:23:00.555 |  
{i386,x86_64,armhf,ppc,ppc64} [-k FILE] [-c FILE]
2015-12-17 09:23:00.555 |  [--ec2cert FILE] [-u 
ACCOUNT] [--kernel IMAGE]
2015-12-17 09:23:00.555 |  [--ramdisk IMAGE]
2015-12-17 09:23:00.555 |  [-B 
VIRTUAL1=DEVICE1,VIRTUAL2=DEVICE2,...]
2015-12-17 09:23:00.555 |  [--productcodes 
CODE1,CODE2,...]
2015-12-17 09:23:00.555 |  [--image-size IMAGE_SIZE] 
[--region USER@REGION]
2015-12-17 09:23:00.555 |  [--debug] [--debugger] 
[--version] [-h]
2015-12-17 09:23:00.555 | euca-bundle-image: error: argument -r/--arch: invalid 
choice: 'ppc64le' (choose from 'i386', 'x86_64', 'armhf', 'ppc', 'ppc64')


Required for Devstack (under lib/tempest) to upload and configure CirrOS image 
for ppc64le (Power Little-Endian) architecture.

** Affects: euca2ools (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1527341

Title:
  euca-bundle-image does not support ppc64le arch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/euca2ools/+bug/1527341/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1470247] Re: qemu-kvm wrapper package missing on ppc64le

2015-07-01 Thread Rafael Folco
*** This bug is a duplicate of bug 1389897 ***
https://bugs.launchpad.net/bugs/1389897

** This bug has been marked a duplicate of bug 1389897
   no way to install enough qemu for kvm in a cross platform way

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1470247

Title:
  qemu-kvm wrapper package missing on ppc64le

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1470247/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1470247] Re: qemu-kvm wrapper package missing on ppc64le

2015-07-01 Thread Rafael Folco
*** This bug is a duplicate of bug 1389897 ***
https://bugs.launchpad.net/bugs/1389897

** This bug has been marked a duplicate of bug 1389897
   no way to install enough qemu for kvm in a cross platform way

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1470247

Title:
  qemu-kvm wrapper package missing on ppc64le

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1470247/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1470247] [NEW] qemu-kvm wrapper package missing on ppc64le

2015-06-30 Thread Rafael Folco
Public bug reported:

1) Ubuntu Release
Description:Ubuntu 14.04.2 LTS
Release:14.04

uname -m
ppc64le

2) Version (i386)
qemu-kvm:
  Installed: 2.1+dfsg-4ubuntu6
  Candidate: 2.1+dfsg-4ubuntu6
  Version table:
 *** 2.1+dfsg-4ubuntu6 0
500 http://nova.clouds.archive.ubuntu.com/ubuntu/ utopic/main i386 
Packages
100 /var/lib/dpkg/status


3) Missing qemu-kvm wrapper package is a dependency to devstack

From a x86_64 ubuntu machine:
ubuntu@rfolco-ubuntu:~$ sudo dpkg -L qemu-kvm
/.
/usr
/usr/bin
/usr/bin/kvm
/usr/share
/usr/share/doc
/usr/share/doc/qemu-kvm
/usr/share/doc/qemu-kvm/copyright
/usr/share/doc/qemu-kvm/NEWS.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/kvm.1.gz
/usr/bin/qemu-system-x86_64-spice
/usr/bin/kvm-spice
/usr/share/doc/qemu-kvm/changelog.Debian.gz
ubuntu@rfolco-ubuntu:~$ file /usr/bin/kvm-spice
/usr/bin/kvm-spice: symbolic link to `kvm'
ubuntu@rfolco-ubuntu:~$ file /usr/bin/kvm
/usr/bin/kvm: POSIX shell script, ASCII text executable
ubuntu@rfolco-ubuntu:~$ cat /usr/bin/kvm
#! /bin/sh
exec qemu-system-x86_64 -enable-kvm $@

On ppc64le, /usr/bin/kvm script (packaged in qemu-kvm) should be a wrapper to 
qemu-system-ppc:
#! /bin/sh
exec qemu-system-ppc -enable-kvm $@



4) qemu-kvm does not exist in ppc64le:
stack@ubuntu:~/devstack$ sudo apt-get install qemu-kvm
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Package qemu-kvm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  qemu-user qemu-utils qemu-system-x86 qemu-system-sparc qemu-system-ppc
  qemu-system-arm cpu-checker

E: Package 'qemu-kvm' has no installation candidate


== Devstack fails to deploy due to missing qemu-kvm dependency
+ real_install_package qemu-kvm
+ is_ubuntu
+ [[ -z deb ]]
+ '[' deb = deb ']'
+ apt_get install qemu-kvm
++ set +o
++ grep xtrace
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ sudo DEBIAN_FRONTEND=noninteractive http_proxy= https_proxy= no_proxy= 
apt-get --option Dpkg::Options::=--force-confold --assume-yes install qemu-kvm
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Package qemu-kvm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  qemu-user qemu-utils qemu-system-x86 qemu-system-sparc qemu-system-ppc
  qemu-system-arm cpu-checker

E: Package 'qemu-kvm' has no installation candidate
+ exit_trap
+ local r=100
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 100 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ [[ -z /opt/stack/logs ]]
+ /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2015-06-30-200140.txt for details
Traceback (most recent call last):
  File /opt/stack/devstack/tools/worlddump.py, line 133, in module
sys.exit(main())
  File /opt/stack/devstack/tools/worlddump.py, line 124, in main
process_list()
  File /opt/stack/devstack/tools/worlddump.py, line 98, in process_list
_dump_cmd(ps axo 
  File /opt/stack/devstack/tools/worlddump.py, line 50, in _dump_cmd
subprocess.Popen(cmd, shell=True)
NameError: global name 'subprocess' is not defined

** Affects: qemu (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1470247

Title:
  qemu-kvm wrapper package missing on ppc64le

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1470247/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1470247] [NEW] qemu-kvm wrapper package missing on ppc64le

2015-06-30 Thread Rafael Folco
Public bug reported:

1) Ubuntu Release
Description:Ubuntu 14.04.2 LTS
Release:14.04

uname -m
ppc64le

2) Version (i386)
qemu-kvm:
  Installed: 2.1+dfsg-4ubuntu6
  Candidate: 2.1+dfsg-4ubuntu6
  Version table:
 *** 2.1+dfsg-4ubuntu6 0
500 http://nova.clouds.archive.ubuntu.com/ubuntu/ utopic/main i386 
Packages
100 /var/lib/dpkg/status


3) Missing qemu-kvm wrapper package is a dependency to devstack

From a x86_64 ubuntu machine:
ubuntu@rfolco-ubuntu:~$ sudo dpkg -L qemu-kvm
/.
/usr
/usr/bin
/usr/bin/kvm
/usr/share
/usr/share/doc
/usr/share/doc/qemu-kvm
/usr/share/doc/qemu-kvm/copyright
/usr/share/doc/qemu-kvm/NEWS.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/kvm.1.gz
/usr/bin/qemu-system-x86_64-spice
/usr/bin/kvm-spice
/usr/share/doc/qemu-kvm/changelog.Debian.gz
ubuntu@rfolco-ubuntu:~$ file /usr/bin/kvm-spice
/usr/bin/kvm-spice: symbolic link to `kvm'
ubuntu@rfolco-ubuntu:~$ file /usr/bin/kvm
/usr/bin/kvm: POSIX shell script, ASCII text executable
ubuntu@rfolco-ubuntu:~$ cat /usr/bin/kvm
#! /bin/sh
exec qemu-system-x86_64 -enable-kvm $@

On ppc64le, /usr/bin/kvm script (packaged in qemu-kvm) should be a wrapper to 
qemu-system-ppc:
#! /bin/sh
exec qemu-system-ppc -enable-kvm $@



4) qemu-kvm does not exist in ppc64le:
stack@ubuntu:~/devstack$ sudo apt-get install qemu-kvm
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Package qemu-kvm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  qemu-user qemu-utils qemu-system-x86 qemu-system-sparc qemu-system-ppc
  qemu-system-arm cpu-checker

E: Package 'qemu-kvm' has no installation candidate


== Devstack fails to deploy due to missing qemu-kvm dependency
+ real_install_package qemu-kvm
+ is_ubuntu
+ [[ -z deb ]]
+ '[' deb = deb ']'
+ apt_get install qemu-kvm
++ set +o
++ grep xtrace
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ sudo DEBIAN_FRONTEND=noninteractive http_proxy= https_proxy= no_proxy= 
apt-get --option Dpkg::Options::=--force-confold --assume-yes install qemu-kvm
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Package qemu-kvm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  qemu-user qemu-utils qemu-system-x86 qemu-system-sparc qemu-system-ppc
  qemu-system-arm cpu-checker

E: Package 'qemu-kvm' has no installation candidate
+ exit_trap
+ local r=100
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 100 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ [[ -z /opt/stack/logs ]]
+ /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2015-06-30-200140.txt for details
Traceback (most recent call last):
  File /opt/stack/devstack/tools/worlddump.py, line 133, in module
sys.exit(main())
  File /opt/stack/devstack/tools/worlddump.py, line 124, in main
process_list()
  File /opt/stack/devstack/tools/worlddump.py, line 98, in process_list
_dump_cmd(ps axo 
  File /opt/stack/devstack/tools/worlddump.py, line 50, in _dump_cmd
subprocess.Popen(cmd, shell=True)
NameError: global name 'subprocess' is not defined

** Affects: qemu (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1470247

Title:
  qemu-kvm wrapper package missing on ppc64le

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1470247/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1300779] Re: No network adapters found in ppc64el cloud-image

2014-04-01 Thread Rafael Folco
** Attachment added: libvirt xml created by nova
   
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1300779/+attachment/4058223/+files/instance-006a.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1300779

Title:
  No network adapters found in ppc64el cloud-image

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1300779/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1300779] [NEW] No network adapters found in ppc64el cloud-image

2014-04-01 Thread Rafael Folco
Public bug reported:


Added ppc64el image to Openstack with glance create-image and started an 
instance with nova boot. 
The guest starts but there is no network.

1) Downloaded ppc64el cloud-image from http://cloud-images.ubuntu.com/trusty/
2) Created glance image with glance image-create api
3) Created an instance with nova boot

Kernel in the host:
Linux pok1 3.12.11-201.1.fc19.ppc64p7 #1 SMP Thu Mar 20 11:46:52 EST 2014 ppc64 
ppc64 ppc64 GNU/Linux

qemu/libvirt:
qemu-1.7.91-0.1.fc19.ppc64
qemu-kvm-1.7.91-0.1.fc19.ppc64
libvirt-1.2.2-1.fc19.ppc64


cloud-init-nonet[5.50]: waiting 10 seconds for network device
cloud-init-nonet[15.51]: waiting 120 seconds for network device
cloud-init-nonet[135.51]: gave up waiting for a network device.
Cloud-init v. 0.7.5 running 'init' at Mon, 31 Mar 2014 19:47:34 +. Up 
135.72 seconds.
ci-info: +++Net device info
ci-info: ++---+---+---+---+
ci-info: | Device |   Up  |  Address  |Mask   | Hw-Address|
ci-info: ++---+---+---+---+
ci-info: |   lo   |  True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | tunl0  | False | . | . | . |
ci-info: |  eth0  |  True | . | . | fa:16:3e:f0:26:72 |
ci-info: ++---+---+---+---+
ci-info: !!!Route info 
failed

2014-03-31 19:47:34,951 - url_helper.py[WARNING]: Calling
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[0/120s]: request error [HTTPConnectionPool(host='169.254.169.254',
port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-
id (Caused by class 'socket.error': [Errno 101] Network is
unreachable)]

network qemu options used:

-netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=22 -device virtio-net-
pci,netdev=hostnet0,id=net0,mac=fa:16:3e:f0:26:72,bus=pci,addr=0x1

all qemu options used:

10757 ?Sl 3:00 /usr/bin/qemu-system-ppc64 -machine accel=kvm
-name instance-006a -S -machine pseries,accel=kvm,usb=off -m 4096
-realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid cef33775
-bc7a-4e04-80a0-b53224d5c6a8 -no-user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-
006a.monitor,server,nowait -mon
chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew
-no-shutdown -boot strict=on -usb -drive
file=/var/lib/nova/instances/cef33775-bc7a-
4e04-80a0-b53224d5c6a8/disk,if=none,id=drive-virtio-
disk0,format=qcow2,cache=none -device virtio-blk-
pci,scsi=off,bus=pci,addr=0x3,drive=drive-virtio-disk0,id=virtio-
disk0,bootindex=1 -netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=22
-device virtio-net-
pci,netdev=hostnet0,id=net0,mac=fa:16:3e:f0:26:72,bus=pci,addr=0x1
-chardev file,id=charserial0,path=/var/lib/nova/instances/cef33775-bc7a-
4e04-80a0-b53224d5c6a8/console.log -device spapr-
vty,chardev=charserial0,reg=0x3000 -chardev pty,id=charserial1
-device spapr-vty,chardev=charserial1,reg=0x30001000 -device usb-
tablet,id=input0 -vnc 9.114.219.122:1 -k en-us -device
VGA,id=video0,bus=pci,addr=0x5 -device virtio-balloon-
pci,id=balloon0,bus=pci,addr=0x4


qemu instance log (/var/log/libvirt/qemu/instance-006a.log):

2014-03-31 19:44:58.000+: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin 
QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -name instance-006a -S -machine 
pseries,accel=kvm,usb=off -m 4096 -realtime mlock=off -smp 
2,sockets=2,cores=1,threads=1 -uuid cef33775-bc7a-4e04-80a0-b53224d5c6a8 
-no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-006a.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew 
-no-shutdown -boot strict=on -usb -drive 
file=/var/lib/nova/instances/cef33775-bc7a-4e04-80a0-b53224d5c6a8/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
 -device 
virtio-blk-pci,scsi=off,bus=pci,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
 -netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=22 -device 
virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:f0:26:72,bus=pci,addr=0x1 
-chardev 
file,id=charserial0,path=/var/lib/nova/instances/cef33775-bc7a-4e04-80a0-b53224d5c6a8/console.log
 -device spapr-
 vty,chardev=charserial0,reg=0x3000 -chardev pty,id=charserial1 -device 
spapr-vty,chardev=charserial1,reg=0x30001000 -device usb-tablet,id=input0 -vnc 
9.114.219.122:1 -k en-us -device VGA,id=video0,bus=pci,addr=0x5 -device 
virtio-balloon-pci,id=balloon0,bus=pci,addr=0x4
char device redirected to /dev/pts/5 (label charserial1)

** Affects: cloud-init (Ubuntu)
 Importance: Undecided
 Status: New

** Attachment added: ppc64el guest console
   
https://bugs.launchpad.net/bugs/1300779/+attachment/4058219/+files/ubuntu_le.console.txt

-- 
You received this bug 

[Bug 1300779] Re: No network adapters found in ppc64el cloud-image

2014-04-01 Thread Rafael Folco
** Attachment added: libvirt xml created by nova
   
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1300779/+attachment/4058223/+files/instance-006a.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1300779

Title:
  No network adapters found in ppc64el cloud-image

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1300779/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1300779] [NEW] No network adapters found in ppc64el cloud-image

2014-04-01 Thread Rafael Folco
Public bug reported:


Added ppc64el image to Openstack with glance create-image and started an 
instance with nova boot. 
The guest starts but there is no network.

1) Downloaded ppc64el cloud-image from http://cloud-images.ubuntu.com/trusty/
2) Created glance image with glance image-create api
3) Created an instance with nova boot

Kernel in the host:
Linux pok1 3.12.11-201.1.fc19.ppc64p7 #1 SMP Thu Mar 20 11:46:52 EST 2014 ppc64 
ppc64 ppc64 GNU/Linux

qemu/libvirt:
qemu-1.7.91-0.1.fc19.ppc64
qemu-kvm-1.7.91-0.1.fc19.ppc64
libvirt-1.2.2-1.fc19.ppc64


cloud-init-nonet[5.50]: waiting 10 seconds for network device
cloud-init-nonet[15.51]: waiting 120 seconds for network device
cloud-init-nonet[135.51]: gave up waiting for a network device.
Cloud-init v. 0.7.5 running 'init' at Mon, 31 Mar 2014 19:47:34 +. Up 
135.72 seconds.
ci-info: +++Net device info
ci-info: ++---+---+---+---+
ci-info: | Device |   Up  |  Address  |Mask   | Hw-Address|
ci-info: ++---+---+---+---+
ci-info: |   lo   |  True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | tunl0  | False | . | . | . |
ci-info: |  eth0  |  True | . | . | fa:16:3e:f0:26:72 |
ci-info: ++---+---+---+---+
ci-info: !!!Route info 
failed

2014-03-31 19:47:34,951 - url_helper.py[WARNING]: Calling
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[0/120s]: request error [HTTPConnectionPool(host='169.254.169.254',
port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-
id (Caused by class 'socket.error': [Errno 101] Network is
unreachable)]

network qemu options used:

-netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=22 -device virtio-net-
pci,netdev=hostnet0,id=net0,mac=fa:16:3e:f0:26:72,bus=pci,addr=0x1

all qemu options used:

10757 ?Sl 3:00 /usr/bin/qemu-system-ppc64 -machine accel=kvm
-name instance-006a -S -machine pseries,accel=kvm,usb=off -m 4096
-realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid cef33775
-bc7a-4e04-80a0-b53224d5c6a8 -no-user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-
006a.monitor,server,nowait -mon
chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew
-no-shutdown -boot strict=on -usb -drive
file=/var/lib/nova/instances/cef33775-bc7a-
4e04-80a0-b53224d5c6a8/disk,if=none,id=drive-virtio-
disk0,format=qcow2,cache=none -device virtio-blk-
pci,scsi=off,bus=pci,addr=0x3,drive=drive-virtio-disk0,id=virtio-
disk0,bootindex=1 -netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=22
-device virtio-net-
pci,netdev=hostnet0,id=net0,mac=fa:16:3e:f0:26:72,bus=pci,addr=0x1
-chardev file,id=charserial0,path=/var/lib/nova/instances/cef33775-bc7a-
4e04-80a0-b53224d5c6a8/console.log -device spapr-
vty,chardev=charserial0,reg=0x3000 -chardev pty,id=charserial1
-device spapr-vty,chardev=charserial1,reg=0x30001000 -device usb-
tablet,id=input0 -vnc 9.114.219.122:1 -k en-us -device
VGA,id=video0,bus=pci,addr=0x5 -device virtio-balloon-
pci,id=balloon0,bus=pci,addr=0x4


qemu instance log (/var/log/libvirt/qemu/instance-006a.log):

2014-03-31 19:44:58.000+: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin 
QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -name instance-006a -S -machine 
pseries,accel=kvm,usb=off -m 4096 -realtime mlock=off -smp 
2,sockets=2,cores=1,threads=1 -uuid cef33775-bc7a-4e04-80a0-b53224d5c6a8 
-no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-006a.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew 
-no-shutdown -boot strict=on -usb -drive 
file=/var/lib/nova/instances/cef33775-bc7a-4e04-80a0-b53224d5c6a8/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
 -device 
virtio-blk-pci,scsi=off,bus=pci,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
 -netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=22 -device 
virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:f0:26:72,bus=pci,addr=0x1 
-chardev 
file,id=charserial0,path=/var/lib/nova/instances/cef33775-bc7a-4e04-80a0-b53224d5c6a8/console.log
 -device spapr-
 vty,chardev=charserial0,reg=0x3000 -chardev pty,id=charserial1 -device 
spapr-vty,chardev=charserial1,reg=0x30001000 -device usb-tablet,id=input0 -vnc 
9.114.219.122:1 -k en-us -device VGA,id=video0,bus=pci,addr=0x5 -device 
virtio-balloon-pci,id=balloon0,bus=pci,addr=0x4
char device redirected to /dev/pts/5 (label charserial1)

** Affects: cloud-init (Ubuntu)
 Importance: Undecided
 Status: New

** Attachment added: ppc64el guest console
   
https://bugs.launchpad.net/bugs/1300779/+attachment/4058219/+files/ubuntu_le.console.txt

-- 
You received this bug