Alex Kavanagh

Results 16 issues of Alex Kavanagh

The vital output from the Jenkins integration test: (probably something has changed on requests, or similar) Failing test: ``` integration installed: asn1crypto==0.24.0,attrs==19.1.0,certifi==2019.9.11,cffi==1.12.3,chardet==3.0.4,coverage==4.5.4,cryptography==2.7,ddt==1.2.1,entrypoints==0.3,flake8==3.7.8,funcsigs==1.0.2,idna==2.8,mccabe==0.6.1,mock==3.0.5,mock-services==0.3.1,nose==1.3.7,pbr==5.4.3,pkg-resources==0.0.0,pycodestyle==2.5.0,pycparser==2.19,pyflakes==2.1.1,-e git+https://github.com/lxc/pylxd@bf43969c42a4aaa06ee499f59d23e5e553864e24#egg=pylxd,python-dateutil==2.8.0,requests==2.22.0,requests-mock==1.1.0,requests-toolbelt==0.9.1,requests-unixsocket==0.2.0,six==1.12.0,urllib3==1.25.4,ws4py==0.5.1 integration runtests: PYTHONHASHSEED='3053410663' integration runtests: commands[0] |...

In the `pylxd/client.py` file there is the following code in the `_APINode` class: ```python class _APINode(object): """An api node object.""" def __init__(self, api_endpoint, cert=None, verify=True, timeout=None): self._api_endpoint = api_endpoint self._timeout...

Specifically: * GET /1.0/operations -- get a list of current operations that are ongoing or queued. * DELETE /1.0/operations/ -- cancel an ongoing operation. * GET /1.0/operations//websocket -- gets the...

enhancement

This was introduced with the 'patch' API extension. It's possible other API endpoints also support the 'patch' API extension that isn't being used. To be investigated further.

enhancement

Essentially, the tests don't run due to `ubuntu-18.04` being requested which has been deprecated: https://github.com/actions/runner-images/issues/6002 and was removed on the 2023/4/1. Description seen against a test: Requested labels: ubuntu-18.04 Job...

This is the start of an example of how to turn the restart_on_change decorator into a context manager and decorator.

The error from #555 travis run is: https://travis-ci.org/github/juju/charm-helpers/builds/753035083 ``` $ export ENV=pep8,py3 0.01s$ source ~/virtualenv/python3.8/bin/activate $ python --version Python 3.8.6 $ pip --version pip 20.3.1 from /home/travis/virtualenv/python3.8.6/lib/python3.8/site-packages/pip (python 3.8) before_install.1...

charm-helpers itself, and lots of charms, use this exact line: ```python release = lsb_release()['DISTRIB_CODENAME'].lower() ``` There ought to be a helper that does this, and do it through the code...

Due to LP:#1796830 it turns out that the copy_nrpe_checks() function assumes that charmhelpers will always be installed in the hooks directory (which was probably a reasonable assumption). However, certain issues...

Unfortunately, HookData() iterates through all of the relations which makes it very slow when it is used by the pause/unpause functions, and the assess_status() function template tests to see if...