Removing temporal from LCM 86/12986/1
authorMark Beierl <mark.beierl@canonical.com>
Fri, 17 Feb 2023 21:07:41 +0000 (21:07 +0000)
committerMark Beierl <mark.beierl@canonical.com>
Fri, 17 Feb 2023 21:07:41 +0000 (21:07 +0000)
Only NGCM should have temporal.  This was committed in error

Change-Id: I1a3a5bbadd0f83a4596c92488dc6ca7686a2930a
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
installers/charm/osm-lcm/src/charm.py
tools/local-build.sh

index c7e1126..4a362a6 100755 (executable)
@@ -38,7 +38,6 @@ from charms.osm_libs.v0.utils import (
     check_container_ready,
     check_service_active,
 )
-from charms.osm_temporal.v0.temporal import TemporalRequires
 from charms.osm_ro.v0.ro import RoRequires
 from charms.osm_vca_integrator.v0.vca import VcaDataChangedEvent, VcaRequires
 from ops.charm import ActionEvent, CharmBase, CharmEvents
@@ -85,7 +84,6 @@ class OsmLcmCharm(CharmBase):
         super().__init__(*args)
         self.vca = VcaRequires(self)
         self.kafka = KafkaRequires(self)
-        self.temporal = TemporalRequires(self)
         self.mongodb_client = MongoClient(self, "mongodb")
         self._observe_charm_events()
         self.ro = RoRequires(self)
@@ -182,8 +180,6 @@ class OsmLcmCharm(CharmBase):
             self.on["mongodb"].relation_broken: self._on_required_relation_broken,
             self.on["ro"].relation_changed: self._on_config_changed,
             self.on["ro"].relation_broken: self._on_required_relation_broken,
-            self.on["temporal"].relation_changed: self._on_config_changed,
-            self.on["temporal"].relation_broken: self._on_required_relation_broken,
             self.on.vca_data_changed: self._on_config_changed,
             self.on["vca"].relation_broken: self._on_config_changed,
             # Action events
@@ -207,8 +203,6 @@ class OsmLcmCharm(CharmBase):
             missing_relations.append("mongodb")
         if not self.ro.host or not self.ro.port:
             missing_relations.append("ro")
-        if not self.temporal.host or not self.temporal.port:
-            missing_relations.append("temporal")
 
         if missing_relations:
             relations_str = ", ".join(missing_relations)
@@ -247,9 +241,6 @@ class OsmLcmCharm(CharmBase):
             "OSMLCM_STORAGE_URI": self.mongodb_client.connection_string,
             "OSMLCM_VCA_HELM_CA_CERTS": self.config["helm-ca-certs"],
             "OSMLCM_VCA_STABLEREPOURL": self.config["helm-stable-repo-url"],
-            # Temporal configuration
-            "OSMNBI_TEMPORAL_HOST": self.temporal.host,
-            "OSMNBI_TEMPORAL_PORT": self.temporal.port,
         }
         # Vca configuration
         if self.vca.data:
index 7254bad..ab4b147 100755 (executable)
@@ -216,7 +216,7 @@ function stage_2() {
             STAGES="stage-test.sh ${STAGES}"
         fi
         for STAGE in $STAGES ; do
-            docker run -ti \
+            docker run -i \
                 -v "$(pwd):/build" \
                 -w /build \
                 ${MODULE,,}-stage2 \
@@ -275,7 +275,7 @@ function stage_3() {
     for MODULE in ${MODULES} ; do
         cd "${ROOTDIR}/devops/docker"
         if [ ! -d ${MODULE} ] ; then
-            echo "Directory ${ROOTDIR}/${MODULE} does not exist"
+            echo "Directory ${ROOTDIR}/devops/docker/${MODULE} does not exist"
             exit 1
         fi
         print_section "Building ${MODULE}"