Hello, the bug wasn't fixed for me. The service name is still empty. I add the steps to reproduce it:
Fresh machine, Ubuntu Bionic
STEPS: ``` sudo snap install microk8s --classic sudo snap install juju --classic --channel 2.6/edge microk8s.status --wait-ready microk8s.enable dashboard storage dns sudo alias microk8s.kubectl kubectl juju bootstrap microk8s juju add-model osm juju create-storage-pool operator-storage kubernetes storage-class=microk8s-hostpath juju create-storage-pool osm-pv kubernetes storage-class=microk8s-hostpath juju deploy cs:~charmed-osm/mongodb-k8s --channel edge -n 3
# Wait... juju status --color
Model Controller Cloud/Region Version SLA Timestamp osm microk8s-localhost microk8s/localhost 2.6.4 unsupported 17:50:42Z
App Version Status Scale Charm Store Rev OS Address Notes mongodb-k8s active 3 mongodb-k8s jujucharms 12 kubernetes 10.152.183.40
Unit Workload Agent Address Ports Message mongodb-k8s/0* active idle 10.1.1.10 27017/TCP configured mongodb-k8s/1 active idle 10.1.1.11 27017/TCP configured mongodb-k8s/2 active idle 10.1.1.12 27017/TCP configured
kubectl -n osm get all ^[[A^[[A NAME READY STATUS RESTARTS AGE pod/mongodb-k8s-0 1/1 Running 0 7m20s pod/mongodb-k8s-1 1/1 Running 0 7m20s pod/mongodb-k8s-2 1/1 Running 0 7m20s pod/mongodb-k8s-operator-0 1/1 Running 0 7m39s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/mongodb-k8s ClusterIP 10.152.183.40 <none> 27017/TCP 7m20s
NAME READY AGE statefulset.apps/mongodb-k8s 3/3 7m20s statefulset.apps/mongodb-k8s-operator 1/1 7m39s
kubectl -n osm get statefulsets.apps mongodb-k8s -o yaml apiVersion: apps/v1 kind: StatefulSet metadata: annotations: juju-app-uuid: 190b64ca juju.io/controller: 21bea588-f0a5-49e7-8776-f5da0a62ea3e juju.io/model: b13f5d92-72ce-4777-86bd-9b320b30f4cd creationTimestamp: "2019-06-13T17:45:36Z" generation: 1 name: mongodb-k8s namespace: osm resourceVersion: "816" selfLink: /apis/apps/v1/namespaces/osm/statefulsets/mongodb-k8s uid: 0d01c190-8e03-11e9-a2f8-fa163e81b8c7 spec: podManagementPolicy: Parallel replicas: 3 revisionHistoryLimit: 10 selector: matchLabels: juju-app: mongodb-k8s serviceName: "" template: metadata: annotations: apparmor.security.beta.kubernetes.io/pod: runtime/default juju.io/controller: 21bea588-f0a5-49e7-8776-f5da0a62ea3e juju.io/model: b13f5d92-72ce-4777-86bd-9b320b30f4cd seccomp.security.beta.kubernetes.io/pod: docker/default creationTimestamp: null labels: juju-app: mongodb-k8s spec: containers: - command: - mongod - --replSet - rs0 - --bind_ip - 0.0.0.0 env: - name: ALLOW_ANONYMOUS_LOGIN value: "yes" image: registry.jujucharms.com/charmed-osm/mongodb-k8s/mongodb-image@sha256:05f12b17aa35948848c0d3f0198ce10c7f3e37438724911d0d8f9b6643535599 imagePullPolicy: IfNotPresent name: mongodb-k8s ports: - containerPort: 27017 protocol: TCP resources: {} securityContext: allowPrivilegeEscalation: false procMount: Default readOnlyRootFilesystem: false runAsNonRoot: false terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /data/db name: database-190b64ca dnsPolicy: ClusterFirst imagePullSecrets: - name: mongodb-k8s-mongodb-k8s-secret restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 updateStrategy: rollingUpdate: partition: 0 type: RollingUpdate volumeClaimTemplates: - metadata: annotations: juju-storage: database juju-storage-owner: mongodb-k8s juju.io/controller: 21bea588-f0a5-49e7-8776-f5da0a62ea3e juju.io/model: b13f5d92-72ce-4777-86bd-9b320b30f4cd creationTimestamp: null name: database-190b64ca spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi storageClassName: microk8s-hostpath volumeMode: Filesystem status: phase: Pending status: collisionCount: 0 currentReplicas: 3 currentRevision: mongodb-k8s-66b6948477 observedGeneration: 1 readyReplicas: 3 replicas: 3 updateRevision: mongodb-k8s-66b6948477 updatedReplicas: 3
```
Hello, the bug wasn't fixed for me. The service name is still empty. I add the steps to reproduce it:
Fresh machine, Ubuntu Bionic
STEPS: class=microk8s- hostpath class=microk8s- hostpath osm/mongodb- k8s --channel edge -n 3
```
sudo snap install microk8s --classic
sudo snap install juju --classic --channel 2.6/edge
microk8s.status --wait-ready
microk8s.enable dashboard storage dns
sudo alias microk8s.kubectl kubectl
juju bootstrap microk8s
juju add-model osm
juju create-storage-pool operator-storage kubernetes storage-
juju create-storage-pool osm-pv kubernetes storage-
juju deploy cs:~charmed-
# Wait...
juju status --color
Model Controller Cloud/Region Version SLA Timestamp
osm microk8s-localhost microk8s/localhost 2.6.4 unsupported 17:50:42Z
App Version Status Scale Charm Store Rev OS Address Notes
mongodb-k8s active 3 mongodb-k8s jujucharms 12 kubernetes 10.152.183.40
Unit Workload Agent Address Ports Message
mongodb-k8s/0* active idle 10.1.1.10 27017/TCP configured
mongodb-k8s/1 active idle 10.1.1.11 27017/TCP configured
mongodb-k8s/2 active idle 10.1.1.12 27017/TCP configured
kubectl -n osm get all k8s-operator- 0 1/1 Running 0 7m39s
^[[A^[[A
NAME READY STATUS RESTARTS AGE
pod/mongodb-k8s-0 1/1 Running 0 7m20s
pod/mongodb-k8s-1 1/1 Running 0 7m20s
pod/mongodb-k8s-2 1/1 Running 0 7m20s
pod/mongodb-
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/mongodb-k8s ClusterIP 10.152.183.40 <none> 27017/TCP 7m20s
NAME READY AGE apps/mongodb- k8s 3/3 7m20s apps/mongodb- k8s-operator 1/1 7m39s
statefulset.
statefulset.
kubectl -n osm get statefulsets.apps mongodb-k8s -o yaml io/controller: 21bea588- f0a5-49e7- 8776-f5da0a62ea 3e 72ce-4777- 86bd-9b320b30f4 cd tamp: "2019-06- 13T17:45: 36Z" v1/namespaces/ osm/statefulset s/mongodb- k8s 8e03-11e9- a2f8-fa163e81b8 c7 Policy: Parallel ryLimit: 10
apparmor. security. beta.kubernetes .io/pod: runtime/default
juju.io/ controller: 21bea588- f0a5-49e7- 8776-f5da0a62ea 3e
juju.io/ model: b13f5d92- 72ce-4777- 86bd-9b320b30f4 cd
seccomp. security. beta.kubernetes .io/pod: docker/default imestamp: null _LOGIN jujucharms. com/charmed- osm/mongodb- k8s/mongodb- image@sha256: 05f12b17aa35948 848c0d3f0198ce1 0c7f3e374387249 11d0d8f9b664353 5599
imagePullPolic y: IfNotPresent
securityContex t:
allowPrivile geEscalation: false
procMount: Default
readOnlyRoot Filesystem: false
runAsNonRoot : false
terminationMes sagePath: /dev/terminatio n-log
terminationMes sagePolicy: File
volumeMounts: Secrets: k8s-mongodb- k8s-secret licy: Always Name: default-scheduler ontext: {} onGracePeriodSe conds: 30 mplates:
juju-storage: database
juju-storage- owner: mongodb-k8s
juju.io/ controller: 21bea588- f0a5-49e7- 8776-f5da0a62ea 3e
juju.io/ model: b13f5d92- 72ce-4777- 86bd-9b320b30f4 cd imestamp: null assName: microk8s-hostpath k8s-66b6948477 ation: 1 k8s-66b6948477
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
juju-app-uuid: 190b64ca
juju.
juju.io/model: b13f5d92-
creationTimes
generation: 1
name: mongodb-k8s
namespace: osm
resourceVersion: "816"
selfLink: /apis/apps/
uid: 0d01c190-
spec:
podManagement
replicas: 3
revisionHisto
selector:
matchLabels:
juju-app: mongodb-k8s
serviceName: ""
template:
metadata:
annotations:
creationT
labels:
juju-app: mongodb-k8s
spec:
containers:
- command:
- mongod
- --replSet
- rs0
- --bind_ip
- 0.0.0.0
env:
- name: ALLOW_ANONYMOUS
value: "yes"
image: registry.
name: mongodb-k8s
ports:
- containerPort: 27017
protocol: TCP
resources: {}
- mountPath: /data/db
name: database-190b64ca
dnsPolicy: ClusterFirst
imagePull
- name: mongodb-
restartPo
scheduler
securityC
terminati
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTe
- metadata:
annotations:
creationT
name: database-190b64ca
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageCl
volumeMode: Filesystem
status:
phase: Pending
status:
collisionCount: 0
currentReplicas: 3
currentRevision: mongodb-
observedGener
readyReplicas: 3
replicas: 3
updateRevision: mongodb-
updatedReplicas: 3
```