nova-k8s

Nova K8S

  • OpenStack Charmers
Channel Revision Published Runs on
yoga/beta 20 10 Mar 2023
Ubuntu 22.04
yoga/edge 24 23 Apr 2023
Ubuntu 22.04
xena/beta 14 21 Nov 2022
Ubuntu 22.04
xena/edge 18 20 Jan 2023
Ubuntu 22.04
2024.1/beta 109 11 Dec 2024
Ubuntu 24.04 Ubuntu 22.04
2024.1/beta 103 22 Nov 2024
Ubuntu 24.04 Ubuntu 22.04
2024.1/edge 109 09 Dec 2024
Ubuntu 24.04 Ubuntu 22.04
2024.1/edge 103 07 Oct 2024
Ubuntu 24.04 Ubuntu 22.04
2023.2/stable 55 06 Dec 2023
Ubuntu 22.04
2023.2/candidate 66 25 Mar 2024
Ubuntu 22.04
2023.2/beta 66 25 Mar 2024
Ubuntu 22.04
2023.2/edge 66 23 Feb 2024
Ubuntu 22.04
2023.1/stable 48 26 Sep 2023
Ubuntu 22.04
2023.1/candidate 57 12 Jan 2024
Ubuntu 22.04
2023.1/beta 57 10 Jan 2024
Ubuntu 22.04
2023.1/edge 57 12 Dec 2023
Ubuntu 22.04
juju deploy nova-k8s --channel 2023.2/stable
Show information

Platform:

charms.nova_k8s.v0.nova_service

NovaServiceProvides and Requires module.

This library contains the Requires and Provides classes for handling the nova_service interface.

Import NovaServiceRequires in your charm, with the charm object and the relation name: - self - "nova_service"

Two events are also available to respond to: - config_changed - goneaway

A basic example showing the usage of this relation follows:

from charms.nova_k8s.v0.nova_service import (
    NovaServiceRequires
)

class NovaServiceClientCharm(CharmBase):
    def __init__(self, *args):
        super().__init__(*args)
        # NovaService Requires
        self.nova_service = NovaServiceRequires(
            self, "nova_service",
        )
        self.framework.observe(
            self.nova_service.on.config_changed,
            self._on_nova_service_config_changed
        )
        self.framework.observe(
            self.nova_service.on.goneaway,
            self._on_nova_service_goneaway
        )

    def _on_nova_service_config_changed(self, event):
        '''React to the Nova service config changed event.

        This event happens when NovaService relation is added to the
        model and relation data is changed.
        '''
        # Do something with the configuration provided by relation.
        pass

    def _on_nova_service_goneaway(self, event):
        '''React to the NovaService goneaway event.

        This event happens when NovaService relation is removed.
        '''
        # NovaService Relation has goneaway.
        pass

class NovaConfigRequestEvent

Description

NovaConfigRequest Event. None

class NovaServiceProviderEvents

Description

Events class for on. None

class NovaServiceProvides

Description

NovaServiceProvides class. None

Methods

NovaServiceProvides. __init__( self , charm: CharmBase , relation_name: str )

NovaServiceProvides. set_config( self , relation , nova_spiceproxy_url: str )

Description

Set nova configuration on the relation. None

class NovaConfigChangedEvent

Description

NovaConfigChanged Event. None

class NovaServiceGoneAwayEvent

Description

NovaServiceGoneAway Event. None

class NovaServiceRequirerEvents

Description

Events class for on. None

class NovaServiceRequires

Description

NovaServiceRequires class. None

Methods

NovaServiceRequires. __init__( self , charm: CharmBase , relation_name: str )

NovaServiceRequires. get_remote_app_data( self , key: str )

Description

Return the value for the given key from remote app data. None

NovaServiceRequires. nova_spiceproxy_url( self )

Description

Return the nova_spiceproxy url. None