Alex Kavanagh
ddd26acc6d
Convert the charm to Python3
...
* Move charmhelpers to the root of the charm
* sync charmhelpers to latest version
Change-Id: Id0b838f0206635cf912d205f2fb6fda7b31d0dfe
2019-03-10 14:16:41 +00:00
Alex Kavanagh
72060b6ee7
Fix alphanumeric comparisons for openstack and ubuntu releases
...
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done
Change-Id: I10e3e689aba490118b84b6b9e58df1ba5632d07d
Related-Bug: #1659575
2017-03-29 15:07:07 +01:00
James Page
e22814e092
Add support for Juju network spaces
...
Juju 2.0 provides support for network spaces, allowing
charm authors to support direct binding of relations and
extra-bindings onto underlying network spaces.
Add public and cluster extra bindings to this charm to
support separation of client facing and cluster network
traffic using Juju network spaces.
Existing network configuration options will still be
preferred over any Juju provided network bindings, ensuring
that upgrades to existing deployments don't break.
Change-Id: If4ce1ef545638130cb7e5f0d77b949d9b2e28090
2016-04-07 16:22:52 +01:00
Edward Hope-Morley
1e9726ccf0
only use fallback for get_public_addr() if networks not provided in config
2016-02-24 15:56:04 -05:00
Edward Hope-Morley
ebc2513dd7
[hopem,r=]
...
Support multiple l3 segments.
Closes-Bug: 1523871
2016-02-24 15:43:27 -05:00
Corey Bryant
6736cde59e
Drop render_template() and use charm-helpers render() instead.
2014-12-15 21:13:11 +00:00
Hui Xiang
65bd882a32
Refactor codes.
2014-09-30 11:06:10 +08:00
Hui Xiang
6f8364f410
Use public/cluster addr for osd, osd mon can't parse ipv6 network.
2014-09-28 14:00:11 +08:00
Hui Xiang
719623f0b6
Ceph need to set public/cluster network for IPv6.
2014-09-28 12:41:06 +08:00
Edward Hope-Morley
de145be2dd
fixed ceph.conf newline issue and get_host_ip()
2014-09-24 14:28:44 +01:00
Edward Hope-Morley
720bfb06e9
applied jamespage review fixes
2014-09-24 13:56:03 +01:00
Edward Hope-Morley
e5ca14fc27
applied jamespage review fixes
2014-09-24 13:12:45 +01:00
Hui Xiang
a6ac97ae7d
Use get_ipv6_addr()[0] directly
2014-09-20 01:05:07 +08:00
Edward Hope-Morley
b9c06f4ee3
fixed get_public_addr() for ipv6
2014-09-19 10:51:46 +01:00
Edward Hope-Morley
6694ca3917
fixed get_public_addr() for ipv6
2014-09-19 10:50:33 +01:00
Hui Xiang
062b708f86
Do IPv6 check for supported version.
2014-09-18 22:25:16 +08:00
Hui Xiang
e30af7ebdc
Support ceph for IPv6.
2014-08-11 19:04:42 +08:00
James Page
a93d9947d0
Rework to use ceph-public-address, drop logging
2014-06-23 15:19:21 +01:00
James Page
0d49ad4c85
Add support for splitting public and cluster networks
2014-06-06 13:29:32 +01:00
James Page
6270eafef9
Sync with alternatives charmhelpers, installed ceph.conf as alternative for charm co-existence
2013-10-10 11:46:24 +01:00
James Page
d6e7d2031a
Move to using new storage charmhelpers
2013-06-25 12:03:02 +01:00
James Page
068b8b05a4
Add flake8 and charm proof target for Make
2013-06-24 10:13:52 +01:00
James Page
c2d08e0a79
Trim down utils.py to remaining calls
2013-06-24 09:43:24 +01:00
James Page
762777ee65
Add support for Ceph Bobtail LTS.
...
- XFS and BTRFS disk formats for OSD's.
- Separate journal devices.
- Package provided upstart configurations
Fixes:
- Improve hostname -> ip address resolution in MAAS managed environments.
- Fix disk zapping for devices which have been OSD's before.
- Resync utils.py, cepy.py across ceph charms.
2013-02-08 11:09:00 +00:00
James Page
964ec31825
Allow get_host_ip helper to raise exception in the event that a IP address
...
cannot be resolved for the provided hostname.
2013-02-07 16:00:28 +00:00
Paul Collins
4c73b9eac3
use ceph.list, not quantum.list
2013-01-28 16:18:48 +13:00
James Page
4b63613159
Improve host ip resolution - fixes issues with maas managed DNS
2013-01-24 08:38:15 -06:00
James Page
3993cb13ec
Update units, mark mon managed by upstart
2013-01-11 08:59:51 +00:00
James Page
aeb923dc27
Updates for latest ceph upstream and utils refactor
2012-12-17 10:22:51 +00:00
James Page
ddce0cddcc
Add support for cloud: prefix for cloud archive, tidy OSD device
...
handling to exit early when devices are not found.
2012-11-12 09:32:06 +00:00
James Page
eeaafbafe9
Merged changes from pjdc including cephx configuration support and better arbitarty repository handling
2012-10-18 09:24:36 +01:00
Paul Collins
7bcd20d783
handle http repositories ourselves since add-apt-repository fails so badly
2012-10-18 15:30:52 +13:00
Paul Collins
446545c529
if no key ID is supplied, do not try to apt-key import
2012-10-18 15:13:45 +13:00
James Page
ecde5f7699
Added support for remote OSD services
2012-10-08 15:06:09 +01:00
James Page
e41b0f6da9
Fixup do_hook log calling to work
2012-10-08 13:27:14 +01:00
James Page
3a85f25402
Merged do_hooks changes from pjdc
2012-10-08 13:19:37 +01:00
Paul Collins
9ab0876f9a
fix pep8 e302
2012-10-06 02:16:19 +13:00
Paul Collins
83cf380aaa
hide the hook indirection logic
2012-10-06 01:15:38 +13:00
James Page
3ed257cdaa
Merged is_osd_disk changes from pjdc, fixed up remaining pep8 errors
2012-10-05 11:06:48 +01:00
James Page
6198863707
Fixup juju_log signature, use check_output not check_call when getting IP addresses
2012-10-04 10:32:03 +01:00
James Page
3d5506ce5a
Switch to using DNS for host->ip resolution as this is more provider independent, use .format for string formatting
2012-10-04 10:09:59 +01:00
James Page
407d54f91d
Remove attributation of utils.py
2012-10-04 09:56:29 +01:00
James Page
1326ae9100
Tidy redundant imports and fixup string lex
2012-10-04 09:50:14 +01:00
James Page
dbd2a656cb
Updates for pep8 compliance, added peer hinting to mon hook, removed redundant mon-relation-changed hook, updated copyright, added start/stop hooks to keep charm proof quiet
2012-10-04 09:28:49 +01:00
James Page
2915bfc4fd
Fixed subprocess exception handling in is_quorum, use socket.gethostname() for better hostname resolution, drop extra call for wait_for_quorum from osdize_and_activate
2012-10-03 16:07:47 +01:00
Paul Collins
112a9d39ff
install upstart scripts
2012-10-03 21:50:24 +13:00
Paul Collins
0a563bb818
hackety hack
2012-10-02 23:52:44 +13:00