Coder Social home page Coder Social logo

spoke's People

Contributors

krissaxton avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mattmb

spoke's Issues

dhcp reservation creation fails when using dashed mac address

When run via salt:

opt/pkg/salt/bin/salt -c /opt/pkg/salt/etc/master 'dhcp01.aethernet.local' dhcp.reservation_create freesme-231 01-02-00-02-31-00-00 10.0.16.98
{'dhcp01.aethernet.local': {'count': 1,
                            'data': [['cn=freesme-231,cn=group1,cn=dhcp01-config,ou=dhcp,ou=services,o=aethernet,c=gb',
                                      {'cn': ['freesme-231'],
                                       'dhcpHWAddress': ['ethernet -34'],
                                       'dhcpOption': ['host-name "freesme-231"'],
                                       'dhcpStatements': ['fixed-address 10.0.16.98'],
                                       'objectClass': ['top',
                                                       'dhcpHost',
                                                       'dhcpOptions']}]],
                            'exit_code': 0,
                            'msg': 'Found spoke.lib.dhcp:',
                            'type': 'spoke.lib.dhcp'}}

dhcpHWAddress has value ethernet -34 instead of mac address.

dhcp server search insufficiently precise

Searching for a dhcp server entry where a DHCP reservation exists with the same name will return both entries (only the server entry should be returned).

#spoke-dhcp -ES dhcp01
Bound to LDAP server openldap01:389 as uid=admin,o=aethernet,c=gb
'msg': 'Found 2 spoke.lib.dhcps:'}
Found 2 spoke.lib.dhcps:
[('cn=dhcp01,ou=dhcp,ou=services,o=aethernet,c=gb', {'objectClass': ['top', 'dhcpServer'], 'dhcpServiceDN': ['cn=dhcp01-config,ou=dhcp,ou=services,o=aethernet,c=gb'], 'cn': ['dhcp01']}), ('cn=dhcp01,cn=group1,cn=dhcp01-config,ou=dhcp,ou=services,o=aethernet,c=gb', {'objectClass': ['top', 'dhcpHost', 'dhcpOptions'], 'dhcpStatements': ['fixed-address 10.0.62.3'], 'dhcpOption': ['host-name "dhcp01"'], 'cn': ['dhcp01'], 'dhcpHWAddress': ['ethernet 00:16:3e:ca:00:00']})]

vm power delete returns error despite success

Probably just need a short sleep before testing for power status

#salt -c /opt/pkg/salt/etc/master 'xen03.aethernet.local' vm.power_delete freesme-230
{'xen03.aethernet.local': {'exit_code': 6,
                           'msg': 'ValidationError: Power operation returned OK, but On state is On'}}
#salt -c /opt/pkg/salt/etc/master 'xen03.aethernet.local' vm.power_search freesme-230
{'xen03.aethernet.local': {'count': 1,
                           'data': [{'state': 'Off',
                                     'vm_name': 'freesme-230'}],
                           'exit_code': 0,
                           'msg': 'Found VM:',
                           'type': 'VM'}}

vm_storage should accept OS as input

vm_storage create method should allow passing of OS type. User-land supporting utilities (spoke-vm and salt module vm) should have similar support.

spoke-vm: set default volume group in spoke.conf

It should be possible for utilities using the spoke lvm library (e.g. command line utilites or mcollective plugins) to retreive a default volume group from spoke.conf. This way, only a logical volume name and size need to be passed during create operations. Spoke config would be different for each host machine, allowing for variations in volume group names accross machines.

fetching UUIDs fails

$ ./spoke-host -US
Sorry, something went wrong, you shouldn't be seeing this:
_get_object() got an unexpected keyword argument 'attrs_only'

tftp delete fails

Since we moved to using files instead of links for pxelinux config, the delete method fails:

#spoke-tftp -TC 02:00:02:30:00:00 xendomu.template
Created TFTP config:
[['01-02-00-02-30-00-00']]
#spoke-tftp -TD 02:00:02:30:00:00
Link to mac 02:00:02:30:00:00 doesn't exist, can't delete

activate mcollective agents based on file presence

Currently mcollective agents are (de)activated based on a value in the mcollective configuration file. This method requires a restart of the mcollective daemon for the change to take effect. A more dynamic approach would be for the agent to check for the presence of file each time it is called and only run when the file is present. The presence of this file would be controller via puppet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.