This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Juju GUI handling of empty config breaks promulgated charms #2486
Comments
Thanks for this report. The GUI doesn't |
This would probably be solved by using a newer version of charmhelpers where the |
This doesn't appear to be a GUI issue, the deploy command is sending the config value as an empty string and then it seems Juju is unsetting the value. {
"type": "Application",
"request": "Deploy",
"params": {
"applications": [
{
"application": "cassandra",
"charm-url": "cs:cassandra-29",
"config": {
"authenticator": "PasswordAuthenticator",
"authorizer": "AllowAllAuthorizer",
"cluster_name": "juju",
"commitlog_directory": "commitlog",
"compaction_throughput_mb_per_sec": "16",
"data_file_directories": "data",
"datacenter": "juju",
"edition": "community",
"extra_packages": "",
"heap_newsize": "32M",
"http_proxy": "",
"install_keys": "- null # Apache package signing key added automatically.\n- null # PPA package signing key added automatically.\n- null # PPA package signing key added automatically.\n# - null # DataStack package signing key added automatically.\n",
"install_sources": "- deb http://www.apache.org/dist/cassandra/debian 30x main\n- ppa:openjdk-r/ppa # For OpenJDK 8\n- ppa:cassandra-charmers/stable # For Python driver\n",
"io_scheduler": "noop",
"jre": "openjdk",
"listen_interface": "",
"max_heap_size": "384M",
"nagios_context": "juju",
"nagios_disk_crit_pct": "25",
"nagios_disk_warn_pct": "50",
"nagios_heapchk_crit_pct": "90",
"nagios_heapchk_warn_pct": "80",
"nagios_servicegroups": "",
"native_transport_port": "9042",
"num_tokens": "256",
"package_status": "install",
"partitioner": "Murmur3Partitioner",
"private_jre_url": "",
"rack": "",
"rpc_interface": "",
"rpc_port": "9160",
"saved_caches_directory": "saved_caches",
"ssl_storage_port": "7001",
"storage_port": "7000",
"stream_throughput_outbound_megabits_per_sec": "200",
"tombstone_failure_threshold": "100000",
"tombstone_warn_threshold": "1000",
"wait_for_storage_broker": "false"
},
"config-yaml": "",
"constraints": {},
"num-units": 0,
"resources": {},
"series": "xenial"
}
]
},
"version": 3,
"request-id": 11
} |
I had thought I'd seen this before, turns out it is a known issue: https://bugs.launchpad.net/juju/+bug/1513466 So in the meantime it's probably best to get the charm updated to be more resilient. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How to reproduce:
Deploy cassandra with the GUI. Cassandra installation will fail with the following error.
The Cassandra charm expects
config['http_proxy']
to return an empty string. This is what happens when deploying Cassandra using the CLI. However, config_get crashes because the config isn't set. runningconfig-get
in the hooks context shows that thehttp_proxy
config value just isn't set.The text was updated successfully, but these errors were encountered: