Git Product home page Git Product logo

tegu's Issues

tegu_ha config file parsing bug

The tegu_ha.py script does not properly handle the case where the "fqmgr" section does not have the phost_suffix defined. This is a legitmate case, and the value used if the pair is missing from the control file should be the same as if phost_suffix = "" were in the config file.

Relevant trace:

root@mtmac1:/var/log/tegu# cat tegu_ha.log
2015/09/08 14:23 tegu_ha v1.1 started
Traceback (most recent call last):
  File "/usr/bin/tegu_ha", line 408, in <module>
    main()
  File "/usr/bin/tegu_ha", line 367, in main
    if not cdata["fqmgr"]["phost_suffix"]:
KeyError: 'phost_suffix'

tegu startup logic can choose the wrong checkpoint file

The startup logic for tegu can pick the wrong checkpoint file to pass to Tegu if the last several checkpoint files were all created within the same second. For example, right now i have 28 checkpoint files, but on restart tegu started with resmgr_b26.ckpt. This is because they are sorted by mod time, and Linux only keeps modification times to a granularity of a second. Need a better way to arbitrate; either make sure each checkpoint is created within a unique 1 second period, or store metadata with each file to indicate millisecond granularity.

tegu_ha does not properly handle hostnames which do not have a domain

The tegu_ha.py script does not handle the case where a host name does not have an associated domain name (foo is returned instead of foo.somedom.com). The script needs properly handle this case.

Relevant trace:

2015/09/08 14:28 tegu_ha v1.1 started
Traceback (most recent call last):
  File "/usr/bin/tegu_ha", line 408, in <module>
    main()
  File "/usr/bin/tegu_ha", line 374, in main
    + this_node[this_node.index("."):])
ValueError: substring not found

Refresh creds causing problems for bandwidth reservation.

The change to suss out new projects at the time a reservation request is made is causing an Openstack API call to be made which in some environments results in a 20 to 45 second block while Openstack processes. This call isn't necessary and should be removed.

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.