cleanup
This commit is contained in:
parent
d5f23b7b00
commit
7149aafa0d
65
README.ex
65
README.ex
@ -1,65 +0,0 @@
|
|||||||
# Overview
|
|
||||||
|
|
||||||
Describe the intended usage of this charm and anything unique about how this
|
|
||||||
charm relates to others here.
|
|
||||||
|
|
||||||
This README will be displayed in the Charm Store, it should be either Markdown
|
|
||||||
or RST. Ideal READMEs include instructions on how to use the charm, expected
|
|
||||||
usage, and charm features that your audience might be interested in. For an
|
|
||||||
example of a well written README check out Hadoop:
|
|
||||||
http://jujucharms.com/charms/precise/hadoop
|
|
||||||
|
|
||||||
Use this as a Markdown reference if you need help with the formatting of this
|
|
||||||
README: http://askubuntu.com/editing-help
|
|
||||||
|
|
||||||
This charm provides [service][]. Add a description here of what the service
|
|
||||||
itself actually does.
|
|
||||||
|
|
||||||
Also remember to check the [icon guidelines][] so that your charm looks good
|
|
||||||
in the Juju GUI.
|
|
||||||
|
|
||||||
# Usage
|
|
||||||
|
|
||||||
Step by step instructions on using the charm:
|
|
||||||
|
|
||||||
juju deploy servicename
|
|
||||||
|
|
||||||
and so on. If you're providing a web service or something that the end user
|
|
||||||
needs to go to, tell them here, especially if you're deploying a service that
|
|
||||||
might listen to a non-default port.
|
|
||||||
|
|
||||||
You can then browse to http://ip-address to configure the service.
|
|
||||||
|
|
||||||
## Scale out Usage
|
|
||||||
|
|
||||||
If the charm has any recommendations for running at scale, outline them in
|
|
||||||
examples here. For example if you have a memcached relation that improves
|
|
||||||
performance, mention it here.
|
|
||||||
|
|
||||||
## Known Limitations and Issues
|
|
||||||
|
|
||||||
This not only helps users but gives people a place to start if they want to help
|
|
||||||
you add features to your charm.
|
|
||||||
|
|
||||||
# Configuration
|
|
||||||
|
|
||||||
The configuration options will be listed on the charm store, however If you're
|
|
||||||
making assumptions or opinionated decisions in the charm (like setting a default
|
|
||||||
administrator password), you should detail that here so the user knows how to
|
|
||||||
change it immediately, etc.
|
|
||||||
|
|
||||||
# Contact Information
|
|
||||||
|
|
||||||
Though this will be listed in the charm store itself don't assume a user will
|
|
||||||
know that, so include that information here:
|
|
||||||
|
|
||||||
## Upstream Project Name
|
|
||||||
|
|
||||||
- Upstream website
|
|
||||||
- Upstream bug tracker
|
|
||||||
- Upstream mailing list or contact information
|
|
||||||
- Feel free to add things if it's useful for users
|
|
||||||
|
|
||||||
|
|
||||||
[service]: http://example.com
|
|
||||||
[icon guidelines]: https://jujucharms.com/docs/stable/authors-charm-icon
|
|
@ -535,7 +535,8 @@ def replace_osd(dead_osd_number,
|
|||||||
|
|
||||||
def is_osd_disk(dev):
|
def is_osd_disk(dev):
|
||||||
try:
|
try:
|
||||||
info = subprocess.check_output(['sgdisk', '-i', '1', dev]).decode('utf-8')
|
info = subprocess.check_output(['sgdisk', '-i', '1', dev]) \
|
||||||
|
.decode('utf-8')
|
||||||
info = info.split("\n") # IGNORE:E1103
|
info = info.split("\n") # IGNORE:E1103
|
||||||
for line in info:
|
for line in info:
|
||||||
for ptype in CEPH_PARTITIONS:
|
for ptype in CEPH_PARTITIONS:
|
||||||
@ -735,12 +736,13 @@ def get_named_key(name, caps=None):
|
|||||||
'auth', 'get-or-create', 'client.{}'.format(name),
|
'auth', 'get-or-create', 'client.{}'.format(name),
|
||||||
]
|
]
|
||||||
# Add capabilities
|
# Add capabilities
|
||||||
for subsystem, subcaps in caps.iteritems():
|
for subsystem, subcaps in caps.items():
|
||||||
cmd.extend([
|
cmd.extend([
|
||||||
subsystem,
|
subsystem,
|
||||||
'; '.join(subcaps),
|
'; '.join(subcaps),
|
||||||
])
|
])
|
||||||
return parse_key(subprocess.check_output(cmd).decode('utf-8').strip()) # IGNORE:E1103
|
return parse_key(subprocess.check_output(cmd)
|
||||||
|
.decode('utf-8').strip()) # IGNORE:E1103
|
||||||
|
|
||||||
|
|
||||||
def upgrade_key_caps(key, caps):
|
def upgrade_key_caps(key, caps):
|
||||||
@ -751,7 +753,7 @@ def upgrade_key_caps(key, caps):
|
|||||||
cmd = [
|
cmd = [
|
||||||
"sudo", "-u", ceph_user(), 'ceph', 'auth', 'caps', key
|
"sudo", "-u", ceph_user(), 'ceph', 'auth', 'caps', key
|
||||||
]
|
]
|
||||||
for subsystem, subcaps in caps.iteritems():
|
for subsystem, subcaps in caps.items():
|
||||||
cmd.extend([subsystem, '; '.join(subcaps)])
|
cmd.extend([subsystem, '; '.join(subcaps)])
|
||||||
subprocess.check_call(cmd)
|
subprocess.check_call(cmd)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user