yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #66685
[Bug 1710932] Re: Doesn't configure landscape client
You've an error in your cloud-config file
ubuntu@withkvm:/var/log$ cat /etc/cloud/cloud.cfg.d/99_landscape_client
cloud-config files need a .cfg extension to be read.
If I use your landscape config this way, I see landscape-client
installed and file written.
% cat landscape.yaml
#cloud-config
landscape:
client:
url: "https://192.168.122.1/message-system"
ping_url: "http://192.168.122.1/ping"
data_path: "/var/lib/landscape/client"
#http_proxy: "http://my.proxy.com/foobar"
tags: "maas"
computer_title: withkvm
#https_proxy: fooproxy
registration_key: test
account_name: standalone
% lxc launch ubuntu-daily:artful --config=user.user-data="$(cat
landscape.yaml)"
# wait a bit for install to complete
% lxc exec measured-hyena -- dpkg --list | grep landscape
ii landscape-client 16.03-0ubuntu3 amd64 The Landscape administration system client
ii landscape-common 16.03-0ubuntu3 amd64 The Landscape administration system client - Common files
it appears to be working fine. If you feel there's still a bug, please
re-open.
** Changed in: cloud-init
Status: New => Invalid
--
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/1710932
Title:
Doesn't configure landscape client
Status in cloud-init:
Invalid
Bug description:
ubuntu@withkvm:/var/log$ cat cloud-init.log | grep landscape
2017-08-15 17:17:28,660 - 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
2017-08-15 17:17:28,660 - handlers.py[DEBUG]: start: modules-final/config-landscape: running config-landscape with frequency once-per-instance
2017-08-15 17:17:28,664 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/yar6cr/sem/config_landscape - wb: [420] 25 bytes
2017-08-15 17:17:28,665 - helpers.py[DEBUG]: Running config-landscape using lock (<FileLock using file '/var/lib/cloud/instances/yar6cr/sem/config_landscape'>)
2017-08-15 17:17:28,665 - handlers.py[DEBUG]: finish: modules-final/config-landscape: SUCCESS: config-landscape ran successfully
ubuntu@withkvm:/var/log$ cat /etc/cloud/cloud.cfg.d/99_landscape_client
landscape:
client:
url: "https://192.168.122.1/message-system"
ping_url: "http://192.168.122.1/ping"
data_path: "/var/lib/landscape/client"
#http_proxy: "http://my.proxy.com/foobar"
tags: "maas"
computer_title: withkvm
#https_proxy: fooproxy
registration_key: test
account_name: standalone
ubuntu@withkvm:/var/log$ dpkg -l | grep landscape-client
ubuntu@withkvm:/var/log$ cat /etc/landscape/client.conf
cat: /etc/landscape/client.conf: No such file or directory
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1710932/+subscriptions
References