* Iustin Pop <[email protected]> [2013-02-04 14:20:15 +0100]:

> On Mon, Feb 04, 2013 at 03:15:25PM +0200, Dimitris Aragiorgis wrote:
> > Hello team,
> > 
> > After installing the latest master on an existing cluster with
> > instances and networks, I got the following error in ganeti-confd.log:
> > 
> > 2013-02-04 14:20:46,757719000000 EET: ganeti-confd pid=30361 NOTICE 
> > ganeti-confd daemon startup
> > 2013-02-04 14:20:46,777104000000 EET: ganeti-confd pid=30361 ERROR Failed 
> > to load config: parsing configuration: key 'instances': key 'test': key 
> > 'nics': key 'network': Unable to read JSObject
> > 
> > and I could not list groups (while all other queries succeeded).
> 
> Can you give us the config file or parts of it? It probably means
> there's something wrong in the deserialisation.
> 

.....
"nodegroups": {"2acdbb78-b3c4-4d45-9638-966f638e329f": {"name": "default", 
"tags": [], "ipolicy": {"std": {}, "max": {}, "min": {}}, "serial_no": 3, 
"ndparams": {}, "diskparams": {"drbd": {"metavg": "autovg"}}, "mtime": 
1359988646.216409, "alloc_policy": "preferred", "networks": 
{"5f8ff762-f9bf-44bf-a37a-739bcf9898f4": {"link": "br0", "mode": "bridged"}}, 
"uuid": "2acdbb78-b3c4-4d45-9638-966f638e329f"}},"instances": {"test": 
{"osparams": {"img_id": "debian_base-6.0-9-x86_64", "img_format": "diskdump", 
"img_passwd": "1234", "img_properties": 
"{\"OSFAMILY\":\"linux\",\"ROOT_PARTITION\":\"1\"}"}, "network_port": 11000, 
"serial_no": 1, "name": "test", "hypervisor": "kvm", "disks": [{"logical_id": 
["autovg", "32f0e4c5-b67b-4d4e-b2e8-d39cfdb17205.disk0"], "dev_type": "lvm", 
"params": {}, "mode": "rw", "iv_name": "disk/0", "size": 1024}], "uuid": 
"93f9e1b7-daea-4ff1-94aa-f837b1c0e89f", "mtime": 1359988649.5182519, 
"primary_node": "auto2.example.gr", "hvparams": {"machine_version": "pc-1.0"}, 
"admin_state": "down", "disk_template": "plain", "nics": [{"ip": "10.0.0.2", 
"mac": "aa:00:00:b7:5d:77", "network": "test", "nicparams": {"link": "br0", 
"mode": "bridged"}}], "os": "snf-image+default", "beparams": {}, "ctime": 
1359988649.5182519}},
.....

# gnt-network list
Network Subnet      Gateway  NetworkType MacPrefix GroupList              Tags
test    10.0.0.0/26 10.0.0.1 None        None      default (bridged, br0) 

# gnt-instance list
Instance Hypervisor OS                Primary_node   Status     Memory
test     kvm        snf-image+default auto2.example.gr ADMIN_down      -

# gnt-instance info test
....
    - NICs:
          - nic/0: MAC: aa:00:00:b7:5d:77, IP: 10.0.0.2, mode: bridged, link: 
br0, network: test

# gnt-group list
Corrupt configuration file: I do not have access to a valid configuration, 
cannot process queries: Cannot load configuration
Aborting.

# tail -f /var/log/ganeti/ganeti-confd.log
2013-02-04 16:41:43,435811000000 EET: ganeti-confd pid=26123 NOTICE 
ganeti-confd daemon startup
2013-02-04 16:41:43,447478000000 EET: ganeti-confd pid=26123 ERROR Failed to 
load config: parsing configuration: key 'instances': key 'test': key 'nics': 
key 'network': Unable to read JSObject

> > After re-istalling ganeti configured with --enable-confd=no, I got
> > everything working. Note that the error reappears even if ganeti
> > is configured with --enable-confd=python.
> 
> Note that confd=python doesn't exist anymore in 2.7/master, it only
> enables the (haskell) confd.
> 

Now it makes sense..

Thanks,
dimara

Attachment: signature.asc
Description: Digital signature

Reply via email to