Comment 3 for bug 1825393

Revision history for this message
Narinder Gupta (narindergupta) wrote : Re: [Bug 1825393] Re: upgrade charm from 19.01 to 19.04 fails on initalize storage pool

Alex I can provide few info not all as we are deploying the environment now.

* Ubuntu version

Bionic 18.04 stable
* LXD version (unless it's just distro)

distro only.
* juju config of the lxd charm

  lxd:

    charm: cs:lxd

    options:

      block-devices: '/dev/sdh'

  nova-compute-lxd:
    charm: cs:nova-compute
    num_units: 2
    bindings:
      "": *oam-space
      internal: *internal-space
    options:
      openstack-origin: *openstack-origin
      # this is still a beta feature
      # CRIU is very workload dependent
      enable-live-migration: False
      # maybe in the future
      # enable-resize: True
      # RBD support for nova-lxd will be in Pike
      use-internal-endpoints: True
      restrict-ceph-pools: False
      aa-profile-mode: complain
      virt-type: lxd
      customize-failure-domain: *customize-failure-domain
      reserved-host-memory: *reserved-host-memory
    to:
    - 1012
    - 1013

* juju logs from the broken unit in full (if possible, including the
original deploy)
not available as it is being redeployed

cannot provide as redeployed

* bundle used to deploy the openstack

It is customer bundle with Bionic Rocky.

* /etc/nova* config files

cannot provide as redeployed the environment

Also, what's a 19.01 charm?? Is it the last release, which was 18.11? Do
you have the charm store revision number for the originally deployed
charm?

NG> yes last release where inital charm revison was 22 and after
upgrade it uses 24.

Thanks and Regards,
Narinder Gupta
Canonical, Ltd.
+1.281.736.5150

Ubuntu- Linux for human beings | www.ubuntu.com | www.canonical.com

On Thu, Apr 18, 2019 at 12:50 PM Alex Kavanagh <email address hidden>
wrote:

> Hi Narinder
>
> Could you please provide:
>
> * Ubuntu version
> * LXD version (unless it's just distro)
> * juju config of the lxd charm
> * juju logs from the broken unit in full (if possible, including the
> original deploy)
> * bundle used to deploy the openstack
> * /etc/nova* config files
>
> Also, what's a 19.01 charm?? Is it the last release, which was 18.11? Do
> you have the charm store revision number for the originally deployed
> charm?
>
> Thanks
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1825393
>
> Title:
> upgrade charm from 19.01 to 19.04 fails on initalize storage pool
>
> Status in OpenStack LXD Charm:
> New
>
> Bug description:
> Deploy using 19.02 charm then upgrade to 19.04 charm. config-change
> hook error.
>
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed
> subprocess.CalledProcessError: Command '['lxc', 'storage', 'create', 'lxd',
> 'btrfs', 'source=/dev/sdh']' returned non-zero exit status 1
> unit-lxd-1: 16:21:16 ERROR juju.worker.uniter.operation hook
> "config-changed" failed: exit status 1
> unit-lxd-0: 16:21:14 INFO unit.lxd/0.juju-log Configuring LXD container
> storage
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed
> +------+-------------+--------+--------------------------------------+---------+
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed | NAME |
> DESCRIPTION | DRIVER | SOURCE | USED BY |
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed
> +------+-------------+--------+--------------------------------------+---------+
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed | lxd |
> | btrfs | 4e0bbaa6-6fad-4428-8ffd-81828cdf5746 | 0 |
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed
> +------+-------------+--------+--------------------------------------+---------+
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed Error: The storage
> pool already exists
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed Traceback (most
> recent call last):
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed File
> "/var/lib/juju/agents/unit-lxd-0/charm/hooks/config-changed", line 173, in
> <module>
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed main()
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed File
> "/var/lib/juju/agents/unit-lxd-0/charm/hooks/config-changed", line 166, in
> main
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed
> hooks.execute(sys.argv)
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed File
> "/var/lib/juju/agents/unit-lxd-0/charm/hooks/charmhelpers/core/hookenv.py",
> line 914, in execute
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed
> self._hooks[hook_name]()
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed File
> "/var/lib/juju/agents/unit-lxd-0/charm/hooks/config-changed", line 86, in
> config_changed
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed
> configure_lxd_block()
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed File
> "/var/lib/juju/agents/unit-lxd-0/charm/hooks/lxd_utils.py", line 233, in
> configure_lxd_block
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed
> config_btrfs(dev)
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed File
> "/var/lib/juju/agents/unit-lxd-0/charm/hooks/lxd_utils.py", line 246, in
> config_btrfs
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed check_call(cmd)
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed File
> "/usr/lib/python2.7/subprocess.py", line 190, in check_call
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed raise
> CalledProcessError(retcode, cmd)
> unit-lxd-0: 16:21:14 DEBUG unit.lxd/0.config-changed
> subprocess.CalledProcessError: Command '['lxc', 'storage', 'create', 'lxd',
> 'btrfs', 'source=/dev/sdh']' returned non-zero exit status 1
> unit-lxd-0: 16:21:14 ERROR juju.worker.uniter.operation hook
> "config-changed" failed: exit status 1
> unit-lxd-1: 16:21:16 INFO unit.lxd/1.juju-log Configuring LXD container
> storage
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed
> +------+-------------+--------+--------------------------------------+---------+
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed | NAME |
> DESCRIPTION | DRIVER | SOURCE | USED BY |
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed
> +------+-------------+--------+--------------------------------------+---------+
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed | lxd |
> | btrfs | d33d8b1b-8096-48a4-8a4c-447168e6d049 | 0 |
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed
> +------+-------------+--------+--------------------------------------+---------+
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed Error: The storage
> pool already exists
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed Traceback (most
> recent call last):
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed File
> "/var/lib/juju/agents/unit-lxd-1/charm/hooks/config-changed", line 173, in
> <module>
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed main()
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed File
> "/var/lib/juju/agents/unit-lxd-1/charm/hooks/config-changed", line 166, in
> main
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed
> hooks.execute(sys.argv)
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed File
> "/var/lib/juju/agents/unit-lxd-1/charm/hooks/charmhelpers/core/hookenv.py",
> line 914, in execute
> unit-lxd-1: 16:21:16 DEBUG unit.lxd/1.config-changed
> self._hooks[hook_name]()
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/charm-lxd/+bug/1825393/+subscriptions
>