gui-x: 0
gui-y: 0
nbi:
- charm: "cs:~charmed-osm/nbi-6"
+ charm: "cs:~charmed-osm/nbi-8"
scale: 3
series: kubernetes
options:
gui-x: 0
gui-y: -250
ro:
- charm: "cs:~charmed-osm/ro-1"
+ charm: "cs:~charmed-osm/ro-3"
scale: 3
series: kubernetes
options:
gui-x: -300
gui-y: 250
ng-ui:
- charm: "cs:~charmed-osm/ng-ui-17"
+ charm: "cs:~charmed-osm/ng-ui-19"
scale: 3
series: kubernetes
annotations:
gui-x: 600
gui-y: 0
lcm:
- charm: "cs:~charmed-osm/lcm-2"
+ charm: "cs:~charmed-osm/lcm-4"
scale: 3
series: kubernetes
options:
gui-x: -300
gui-y: 0
mon:
- charm: "cs:~charmed-osm/mon-2"
+ charm: "cs:~charmed-osm/mon-4"
scale: 1
series: kubernetes
options:
gui-x: 300
gui-y: 0
pol:
- charm: "cs:~charmed-osm/pol-1"
+ charm: "cs:~charmed-osm/pol-3"
scale: 3
series: kubernetes
options:
gui-x: -300
gui-y: 500
pla:
- charm: "cs:~charmed-osm/pla-7"
+ charm: "cs:~charmed-osm/pla-8"
scale: 3
series: kubernetes
options:
gui-x: 600
gui-y: -250
prometheus:
- charm: "cs:~charmed-osm/prometheus-1"
+ charm: "cs:~charmed-osm/prometheus-2"
scale: 1
series: kubernetes
storage:
gui-x: 300
gui-y: 250
grafana:
- charm: "cs:~charmed-osm/grafana-1"
+ charm: "cs:~charmed-osm/grafana-2"
scale: 3
series: kubernetes
annotations:
gui-x: 300
gui-y: 500
keystone:
- charm: "cs:~charmed-osm/keystone-5"
+ charm: "cs:~charmed-osm/keystone-7"
scale: 1
series: kubernetes
annotations:
gui-x: 0
gui-y: 0
nbi:
- charm: "cs:~charmed-osm/nbi-6"
+ charm: "cs:~charmed-osm/nbi-8"
scale: 1
series: kubernetes
options:
gui-x: 0
gui-y: -250
ro:
- charm: "cs:~charmed-osm/ro-1"
+ charm: "cs:~charmed-osm/ro-3"
scale: 1
series: kubernetes
options:
gui-x: -300
gui-y: 250
ng-ui:
- charm: "cs:~charmed-osm/ng-ui-17"
+ charm: "cs:~charmed-osm/ng-ui-19"
scale: 1
series: kubernetes
annotations:
gui-x: 600
gui-y: 0
lcm:
- charm: "cs:~charmed-osm/lcm-2"
+ charm: "cs:~charmed-osm/lcm-4"
scale: 1
series: kubernetes
options:
gui-x: -300
gui-y: 0
mon:
- charm: "cs:~charmed-osm/mon-2"
+ charm: "cs:~charmed-osm/mon-4"
scale: 1
series: kubernetes
options:
gui-x: 300
gui-y: 0
pol:
- charm: "cs:~charmed-osm/pol-1"
+ charm: "cs:~charmed-osm/pol-3"
scale: 1
series: kubernetes
options:
gui-x: -300
gui-y: 500
pla:
- charm: "cs:~charmed-osm/pla-7"
+ charm: "cs:~charmed-osm/pla-8"
scale: 1
series: kubernetes
options:
gui-x: 600
gui-y: -250
prometheus:
- charm: "cs:~charmed-osm/prometheus-1"
+ charm: "cs:~charmed-osm/prometheus-2"
scale: 1
series: kubernetes
storage:
gui-x: 300
gui-y: 250
grafana:
- charm: "cs:~charmed-osm/grafana-1"
+ charm: "cs:~charmed-osm/grafana-2"
scale: 1
series: kubernetes
annotations:
gui-x: 300
gui-y: 500
keystone:
- charm: "cs:~charmed-osm/keystone-5"
+ charm: "cs:~charmed-osm/keystone-7"
scale: 1
series: kubernetes
annotations:
echo "$charm charm released!"
done
-# New charms (with resources) (with oci-images from ubuntu)
-charms="prometheus grafana"
-for charm in $charms; do
- echo "Releasing $charm charm"
- cs_revision=$(charm push $charm/$charm.charm cs:~charmed-osm/$charm | tail -n +1 | head -1 | awk '{print $2}')
- resource_revision=$(charm attach $cs_revision image=external::ubuntu/$charm:latest | tail -n +1 | sed 's/[^0-9]*//g')
- image_revision_num=$(echo $resource_revision | awk '{print $NF}')
- resources_string="--resource image-$image_revision_num"
- charm release --channel $channel $cs_revision $resources_string
- echo "$charm charm released!"
-done
+charm="prometheus"
+echo "Releasing $charm charm"
+cs_revision=$(charm push $charm/$charm.charm cs:~charmed-osm/$charm | tail -n +1 | head -1 | awk '{print $2}')
+resource_revision=$(charm attach $cs_revision image=external::ubuntu/$charm:latest | tail -n +1 | sed 's/[^0-9]*//g')
+image_revision_num=$(echo $resource_revision | awk '{print $NF}')
+backup_resource_revision=$(charm attach $cs_revision backup-image=external::ed1000/prometheus-backup:latest | tail -n +1 | sed 's/[^0-9]*//g')
+backup_image_revision_num=$(echo $backup_resource_revision | awk '{print $NF}')
+resources_string="--resource image-$image_revision_num --resource backup-image-$backup_image_revision_num"
+charm release --channel $channel $cs_revision $resources_string
+echo "$charm charm released!"
+
+
+charm="grafana"
+echo "Releasing $charm charm"
+cs_revision=$(charm push $charm/$charm.charm cs:~charmed-osm/$charm | tail -n +1 | head -1 | awk '{print $2}')
+resource_revision=$(charm attach $cs_revision image=external::ubuntu/$charm:latest | tail -n +1 | sed 's/[^0-9]*//g')
+image_revision_num=$(echo $resource_revision | awk '{print $NF}')
+resources_string="--resource image-$image_revision_num"
+charm release --channel $channel $cs_revision $resources_string
+echo "$charm charm released!"
# 3. Grant permissions
all_charms="ng-ui nbi pla keystone ro lcm mon pol grafana prometheus"
MODEL_NAME=osm
-OSM_BUNDLE=cs:osm-60
-OSM_HA_BUNDLE=cs:osm-ha-45
+OSM_BUNDLE=cs:osm-61
+OSM_HA_BUNDLE=cs:osm-ha-46
TAG=testing-daily
function check_arguments(){