[SOLVED] cloud-init and ceph

ufm

Member
Oct 13, 2010
26
0
21
Hi!

I have proxmox with external ceph cluster.

When I tried to create a VM with a cloud-inbit placed on a cef, I received the following error:
Code:
2019-05-07 17:09:57.962713 7f54a71570c0 -1 did not load config file, using default settings.
2019-05-07 17:09:57.968116 7f54a71570c0 -1 Errors while parsing config file!
2019-05-07 17:09:57.968119 7f54a71570c0 -1 parse_file: cannot open /etc/ceph/ceph.conf: (2) No such file or directory
2019-05-07 17:09:57.968120 7f54a71570c0 -1 parse_file: cannot open ~/.ceph/ceph.conf: (2) No such file or directory
2019-05-07 17:09:57.968120 7f54a71570c0 -1 parse_file: cannot open ceph.conf: (2) No such file or directory
2019-05-07 17:09:57.969252 7f54a71570c0 -1 Errors while parsing config file!
2019-05-07 17:09:57.969255 7f54a71570c0 -1 parse_file: cannot open /etc/ceph/ceph.conf: (2) No such file or directory
2019-05-07 17:09:57.969255 7f54a71570c0 -1 parse_file: cannot open ~/.ceph/ceph.conf: (2) No such file or directory
2019-05-07 17:09:57.969255 7f54a71570c0 -1 parse_file: cannot open ceph.conf: (2) No such file or directory
rbd: create error: (17) File exists
TASK ERROR: error with cfs lock 'storage-ceph-storage': rbd create vm-124-cloudinit' error: rbd: create error: (17) File exists

There is really such an image:
Code:
rbd info vm-124-cloudinit
rbd image 'vm-124-cloudinit':
        size 4 MiB in 1 objects
        order 22 (4 MiB objects)
        id: c482b66b8b4567
        block_name_prefix: rbd_data.c482b66b8b4567
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
        op_features:
        flags:
        create_timestamp: Tue May  7 17:09:49 2019

When I place cloud-init on a local node storage, there are no errors.

Two questions:
1. Why is it trying to process /etc/ceph/ceph.conf (btw, when I place config from my ceph cluster, parse error disappears but 'File exists' remain)
2. How to put cloud-init on ceph?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!