← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1643022] [NEW] landscape module does not work

 

Public bug reported:

[description]
While using a 16.04 (Xenial) lxd cloud image, trying to setup landscape does not install the landscape-client or set up the config and has no error message.

[cloud-config]
#cloud-conifg
landscape:
  client:
    log_level: "info"
    url: "https://landscape.canonical.com/message-system";
    ping_url: "http://landscape.canonical.com/ping";
    data_path: "/var/lib/landscape/client"
    http_proxy: "http://my.proxy.com/foobar";
    https_proxy: "https://my.proxy.com/foobar";
    tags: "server,cloud"
    computer_title: "footitle"
    registration_key: "fookey"
    account_name: "fooaccount"

[steps to reproduce]
Image used: b9cba741ef62 ubuntu 16.04 LTS amd64 (release) (20161115)
cloud-init: 0.7.8-1-g3705bb5-0ubuntu1~16.04.3

lxc init ubuntu:xenial/amd64 xenial
lxc config set xenial user.user-data - < cloud-config.yaml
lxc start xenial

[actual result]
root@xenial-lxd:/var/log# cat cloud-init.log  | grep landscape
Nov 18 17:40:00 xenial-lxd [CLOUDINIT] stages.py[DEBUG]: Running module landscape (<module 'cloudinit.config.cc_landscape' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_landscape.py'>) with frequency once-per-instance
Nov 18 17:40:00 xenial-lxd [CLOUDINIT] handlers.py[DEBUG]: start: modules-final/config-landscape: running config-landscape with frequency once-per-instance
Nov 18 17:40:00 xenial-lxd [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/xenial-lxd/sem/config_landscape - wb: [420] 24 bytes
Nov 18 17:40:00 xenial-lxd [CLOUDINIT] helpers.py[DEBUG]: Running config-landscape using lock (<FileLock using file '/var/lib/cloud/instances/xenial-lxd/sem/config_landscape'>)
Nov 18 17:40:00 xenial-lxd [CLOUDINIT] handlers.py[DEBUG]: finish: modules-final/config-landscape: SUCCESS: config-landscape ran successfully

[expected result]
I would have expected landscape-client to get installed and the configuration file to be written.

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1643022

Title:
  landscape module does not work

Status in cloud-init:
  New

Bug description:
  [description]
  While using a 16.04 (Xenial) lxd cloud image, trying to setup landscape does not install the landscape-client or set up the config and has no error message.

  [cloud-config]
  #cloud-conifg
  landscape:
    client:
      log_level: "info"
      url: "https://landscape.canonical.com/message-system";
      ping_url: "http://landscape.canonical.com/ping";
      data_path: "/var/lib/landscape/client"
      http_proxy: "http://my.proxy.com/foobar";
      https_proxy: "https://my.proxy.com/foobar";
      tags: "server,cloud"
      computer_title: "footitle"
      registration_key: "fookey"
      account_name: "fooaccount"

  [steps to reproduce]
  Image used: b9cba741ef62 ubuntu 16.04 LTS amd64 (release) (20161115)
  cloud-init: 0.7.8-1-g3705bb5-0ubuntu1~16.04.3

  lxc init ubuntu:xenial/amd64 xenial
  lxc config set xenial user.user-data - < cloud-config.yaml
  lxc start xenial

  [actual result]
  root@xenial-lxd:/var/log# cat cloud-init.log  | grep landscape
  Nov 18 17:40:00 xenial-lxd [CLOUDINIT] stages.py[DEBUG]: Running module landscape (<module 'cloudinit.config.cc_landscape' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_landscape.py'>) with frequency once-per-instance
  Nov 18 17:40:00 xenial-lxd [CLOUDINIT] handlers.py[DEBUG]: start: modules-final/config-landscape: running config-landscape with frequency once-per-instance
  Nov 18 17:40:00 xenial-lxd [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/xenial-lxd/sem/config_landscape - wb: [420] 24 bytes
  Nov 18 17:40:00 xenial-lxd [CLOUDINIT] helpers.py[DEBUG]: Running config-landscape using lock (<FileLock using file '/var/lib/cloud/instances/xenial-lxd/sem/config_landscape'>)
  Nov 18 17:40:00 xenial-lxd [CLOUDINIT] handlers.py[DEBUG]: finish: modules-final/config-landscape: SUCCESS: config-landscape ran successfully

  [expected result]
  I would have expected landscape-client to get installed and the configuration file to be written.

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


Follow ups