Commit Graph

24 Commits

Author SHA1 Message Date
Samuel Walladge 07f9946dcf Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to d91e83a1fa59a13f4160febfe536c68dc762e436
  - Use the passed arguments in remove_dnsha
    
    This appears to be a typo, where self.service_name and self.endpoint_type
    was used in the same way as seen in other methods,
    but self.service_name or self.endpoint_type is not defined in this class,
    or any subclasses of it.
    So we can use the passed name and endpoint_type arguments here.
    
    Closes-Bug: #2037515
    Change-Id: I12c561057372c11632b2d97fa1763fc92d89f479
2023-11-28 19:07:01 +00:00
Samuel Walladge 6724a4f5a5 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to f3a72cdc9f0ce99f130198528130cf39d18ffefd
  - Update jobs to fix the CI
    
    - remove old / deprecated zuul jobs
    - update to the latest rolling python3 jobs
    - update tox based on tox4 fixes
    - update tox python targets
    - add the platform mocking patch - copy from https://review.opendev.org/c/openstack/charm-nova-compute-nvidia-vgpu/+/899177/2/unit_tests/__init__.py
    
    Change-Id: If77436f4c27cf719907a2888d5b1e9e6c7eb3f7c
2023-11-06 06:03:24 +00:00
Felipe Reyes bf6da74a6f Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to 5fc5216f51dcf98530d45e137d55fd94b39d150a
  - Add monitor for stopped services when clone=False
    
    The cluster as its currently configured for services with clone=False,
    Pacemaker will monitor exclusively that the daemon is running in the
    node where it should, but will take no actions if the same daemon is
    running (e.g. started manually by a sysadmin) in another node of the
    cluster, this becomes a problem for services that are expected to be
    configured in active/passive (e.g. manila-share).
    
    This change configures two monitors for services with clone=False, one
    that monitors the daemon is running where it should, and another one
    that monitors the daemon is not running where it shouldn't.
    
    primitive res_apache systemd:apache2 \
    	...
            op monitor interval=5s role=Started \
            op monitor interval=6s role=Stopped
    
    https://clusterlabs.org/pacemaker/doc/deprecated/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_resource_operations.html#s-resource-monitoring
    
    Closes-Bug: #1904623
    Change-Id: I9e5383f5ab6b6967aa0f2318764519989a292227
2022-05-24 17:47:43 +00:00
Zuul 58e7ba3b72 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to 2b714e90b1b8845ce7390bb1dad5a56a65437907
  - Merge "Update relation data even if the new value is empty"
  - Update relation data even if the new value is empty
    
    This will enable removal of previously created
    resources. Originaly, the empty values were not
    propagated so the resource ended up in both fields
    "json_delete_resources" and "json_resources".
    
    Closes-Bug: #1953623
    Change-Id: I34693bb0e30bce96144a983e55e212e27029ba52
2022-01-11 09:41:37 +00:00
Felipe Reyes 3646a9534d Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to 5451d82104fb21d2b012c0c40ec55ff8d68b4081
  - Drop six.
    
    Charm-helpers dropped py2 support, hence charms are in the process of
    dropping support for it too, this change drops the use of the `six`
    library.
    
    Change-Id: I4c76e60780e7dc1189a9fad8f8caf34c3fad5f65
2021-12-13 16:05:43 +00:00
Zuul bbbf763c09 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to 8125a7baecccf9b0869e515b92300dde3a86f31b
  - Merge "Add OPS framework interface"
  - Add OPS framework interface
    
    Add OPS framework support and exclude ops framework file from
    reactive builds.
    
    Change-Id: I79ae194b97483072501e07e4f8c02bdad03bc19f
2021-09-21 11:35:05 +00:00
Zuul 3aa8f2f712 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to 4e8e1dfdc793bcc8004bfb76812119d6c741dc8d
  - Merge "Revert "Add OPS framework interface""
  - Revert "Add OPS framework interface"
    
    This reverts commit 1730dfe3fd725ffd5b43812c1dded3835bde9193.
    
    Reason for revert: Causing issues with reactive charms
    
    Change-Id: Ib529b973ba8856348b0bd7383d403ceb28f235d5
2021-09-10 08:42:35 +00:00
Zuul 60c3259c4d Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to 0471eed266fdf606934041a47d98fde737a7ea24
  - Merge "Add OPS framework interface"
  - Add OPS framework interface
    
    Change-Id: If5efdd7b91661ae6b5ac9aa6c43151ce9f4577ec
2021-09-09 14:34:18 +00:00
Liam Young a8c3bae95d Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to fa48a2151f86c2e983a174c9bace565829d20a75
  - Expose interface for colocation of services
    
    Change-Id: I22b3158f895fd782f4dbf95347d877b6b6f492fd
2021-09-07 10:26:00 +00:00
Liam Young 97c058df87 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to 679a76dfe564ab1a8f46a124f2f8b74ba3e96965
  - Move common requires code
    
    Move common requires code in to the common module so that
    requires.py only contains the code which is specific to
    reactive charms. This will allow for a subsequent patch which
    creates a requires interface consumable by operator framework
    charms.
    
    Change-Id: I70037252cc7a677a9394929cb0cd17e9506ab624
2021-08-31 17:03:26 +00:00
Alex Kavanagh fb7355e62a Update git submodules
* Update charm-interface-hacluster from branch 'master'
  to 6c611a3c61909fda411f7a79af53908ec7bef2c8
  - Migrate from testr to stestr
    
    Change-Id: I735638f91617d2e951c3ec23498c8ac116cf8f08
2021-02-18 14:02:43 +00:00
Hervé Beraud ac3f4fbe0f Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Use unittest.mock instead of mock
    
    The mock third party library was needed for mock support in py2
    runtimes. Since we now only support py36 and later, we can use the
    standard lib unittest.mock module instead.
    
    Note that https://github.com/openstack/charms.openstack is used during tests
    and he need `mock`, unfortunatelly it doesn't declare `mock` in its
    requirements so it retrieve mock from other charm project (cross dependency).
    So we depend on charms.openstack first and when
    Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
    will pass without errors.
    
    Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
    Change-Id: Ibbbcfe51e76537702a2f4612a8b9829b25b2d149
2020-07-13 05:57:26 +00:00
Liam Young 9bdd8c461d Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Resource parameter order is important on Eoan+
    
    Port of https://github.com/juju/charm-helpers/pull/373 to this
    interface for reactive charms. From the ch pull request:
    
    On Eoan we saw errors like:
    
    ERROR: syntax in primitive: Attribute order error: timeout must appear
    before any instance attribute parsing 'primitive res_ks_cf9dea1_vip
    ocfheartbeatIPaddr2 params ip=10.5.253.30 op monitor depth=0
    timeout=20s interval=10s'
    
    It would appear, that ordering matters, update resource config function
    to the correct order.
    
    Change-Id: I1f8a440fb0ad62192307946de42b9b176b3ef4c1
    Partial-Bug: #1843830
2020-04-22 10:38:59 +00:00
George Kraft 6f4384ee14 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Make SystemdService never give up on resources
    
    Change-Id: Icd202be7cf55f8bd883d102c81881ed15a0e5191
    Closes-Bug: #1859044
2020-04-07 19:14:02 +00:00
José Pekkarinen e45b0f8794 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Control access to crm in cases when the unit is yet not
    having any corosync resource available.
    
    Closes-bug: #1864804
    Change-Id: I6eb3b9a816a93c4c7894e17935b1e7c8604592c5
    Signed-off-by: José Pekkarinen <jose.pekkarinen@canonical.com>
2020-03-04 08:29:52 +00:00
inspurericzhang e4ec8a46ee Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Switch to Ussuri jobs
    
    Change-Id: I589aadb2e73adefbab62c705d28a81732206d32a
2019-12-19 12:49:55 +00:00
Zuul 4eca904994 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Merge "Never give up on resources"
  - Never give up on resources
    
    Configure pacemaker to never give up on resources and
    to recheck 5 seconds after a failure. This is achieved
    using migration-threshold and failure-timeout options *1.
    
    *1 https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_failure_response.html
    
    Change-Id: I4044810daa83f9bd7a59430b5c52c009149fac6e
    Partial-Bug: #1839021
2019-10-01 15:36:20 +00:00
Mike Wilson f5edaa9df4 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Add support for systemd
    
    Systemd support is in corosync, but currently the add_init_service
    handles adding an upstart service only. This results in Charmed
    Kubernetes having incorrectly monitored services.
    
    Change-Id: I935613292ce6b78cf645469fda6d21b0aa695c28
    Closes-Bug: #1843933
2019-09-19 15:24:30 +00:00
Camille Rodriguez 6c69c8d550 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Avoid pollution and false positives with tox.ini
    
    - removing sitepackages in tox.ini to avoid test env pollution
    - skip_missing_interpreters in tox.ini set to False to avoid false
    positives by skipping missing interpreters.
    
    Change-Id: I3e9653753f17e68a302184a734b8fbe6fbf92df8
2019-08-29 15:13:57 +00:00
Corey Bryant 2fc1d8817a Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Add Python 3 Train unit tests
    
    This is a mechanically generated patch to ensure unit testing is in place
    for all of the Tested Runtimes for Train.
    
    See the Train python3-updates goal document for details:
    https://governance.openstack.org/tc/goals/train/python3-updates.html
    
    Note that python35-charm-jobs is retained since this charm is supported
    on Xenial.
    
    Change-Id: Ie5ed4bc0b8c1ecf1c870b9d7d1147c32950eec28
    Story: #2005924
    Task: #34228
    
  - OpenDev Migration Patch
    
    This commit was bulk generated and pushed by the OpenDev sysadmins
    as a part of the Git hosting and code review systems migration
    detailed in these mailing list posts:
    
    http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
    http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html
    
    Attempts have been made to correct repository namespaces and
    hostnames based on simple pattern matching, but it's possible some
    were updated incorrectly or missed entirely. Please reach out to us
    via the contact information listed at https://opendev.org/ with any
    questions you may have.
2019-08-13 18:09:40 +00:00
Paul Goins f5e25e5355 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Added tox environment for gathering coverage
    
    This technique was borrowed from the tox "cover" environment in
    openstack/nova's tox.ini.  This leverages the fact that stestr lets
    you override the python executable via the PYTHON environment
    variable.  Doing this allows us to easily generate coverage for our
    unit tests.
    
    An important caveat is that this does not provide any coverage for
    tests via zaza, amulet, etc.  It is purely focused on the unit tests.
    
    Note that this replaces the previous .coveragerc; coverage
    configuration is instead pulled from tox.ini.
    
    Change-Id: Ia0f190f7de273290d01091fd9211a4bbdb688be5
2019-03-04 10:20:01 +00:00
Mike Wilson b17b92cf2b Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Adding support for deletion of vip, dns, and init services.
    
    Change-Id: I6b0f00aaf7e3c83e1a35ed1ecb4127f743aeba6d
2019-02-19 19:02:59 +00:00
Frode Nordahl ef04f150d6 Update git submodules
* Update charm-interface-hacluster from branch 'master'
  - Fix Python3.4 compability
    
    Add Zuul unit test job
    
    Change-Id: I2dbcd27db0d1791c06c212b07f23d1f26e1fd5ad
    Closes-Bug: #1814218
2019-02-01 14:25:50 +00:00
Monty Taylor aa262b7a44
Update git submodules based on new script
Change-Id: Ia578b55e3e07b4ea90f034805625caf82e9e674e
2019-01-04 14:13:17 +00:00