When I deploy charmed OSM in OpenStack, I have to assign a floating ip for me to access the VM. May I ask how can I expose external ip to OSM so that I can access the services such as web ui, grafana etc.?
When I ran sudo microk8s.kubectl describe ingress -n osm it shows me internal hostname. However I need external hostname that uses the floating point ip. How can I do that?
HI,
I was trying to install OSM in Ubuntu 20.04. I am facing an error while giving authentication for OSM user interface. Could you please suggest me where I went wrong. Please see the screenshot of the error and juju status below.
Charmed OSM changes the default password for security reasons. In the installation log the password you need to use is shown, but you can get it with this command:
juju config keystone admin-password
Use that password to log in the UI.
For the CLI you can set the password with the following command:
Hi, I am trying to install osm charmed with microstack but I get this error when I am trying to use osm command (28, ‘Resolving timed out after 15000 milliseconds’) Maybe “–hostname” option or OSM_HOSTNAME environment variable needs to be specified
Please refer to the screenshot below. Please let me know where I went wrong.
The last outputs of the command “./install_osm.sh --charmed” are the following:
...
Track k8scluster k8scluster_ok: https://osm.etsi.org/InstallLog.php?&installation_id=1673735435-It5UNJL3mrTmrqJm&local_ts=1673735840&event=k8scluster&operation=k8scluster_ok&value=&comment=&tags=
juju (2.9/stable) 2.9.37 from Canonical** installed
Track juju juju_ok: https://osm.etsi.org/InstallLog.php?&installation_id=1673735435-It5UNJL3mrTmrqJm&local_ts=1673736109&event=juju&operation=juju_ok&value=&comment=&tags=
Enabling MetalLB
Applying Metallb manifest
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
E0114 23:53:17.817290 9393 request.go:1101] Unexpected error when reading response body: http2: client connection lost
error when retrieving current configuration of:
Resource: "/v1, Resource=namespaces", GroupVersionKind: "/v1, Kind=Namespace"
Name: "metallb-system", Namespace: ""
from server for: "STDIN": Get "https://127.0.0.1:16443/api/v1/namespaces/metallb-system": http2: client connection lost
...
Any hint how to fix this error?
— Edit —
The situation doesn’t change not using multipass, but running the installation in a partition or a standalone Ubuntu PC.
The results of the intermediate installation steps are
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
osm osm-vca microk8s/localhost 2.9.29 unsupported 18:24:10+01:00
Model "admin/osm" is empty.
$ microk8s.kubectl -n osm get all -n osm
NAME READY STATUS RESTARTS AGE
pod/modeloperator-866bfb7db9-vhz64 1/1 Running 2 (9m56s ago) 149m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/modeloperator ClusterIP 10.152.183.201 <none> 17071/TCP 149m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/modeloperator 1/1 1 1 149m
NAME DESIRED CURRENT READY AGE
replicaset.apps/modeloperator-866bfb7db9 1 1 1 149m
So grafana, kafka and statefulset.apps are missing
Maybe a dumb question, but how you get back this information? Is it possible to get just the last part to export properly or we should REDO the overall deployment?
You should update your last line, I had my cluster in OSM that was in error state :
1- Because of HTTPS Self Signed
2- Because of Microstack AUTH URL already having v3
microk8s is running
high-availability: no
datastore master nodes: 127.0.0.1:19001
datastore standby nodes: none
addons:
enabled:
dns # CoreDNS
ha-cluster # Configure high availability on the current node
ingress # Ingress controller for external access
metallb # Loadbalancer for your Kubernetes cluster
storage # Storage class; allocates storage from host directory
disabled:
ambassador # Ambassador API Gateway and Ingress
cilium # SDN, fast with full network policy
dashboard # The Kubernetes dashboard
dashboard-ingress # Ingress definition for Kubernetes dashboard
fluentd # Elasticsearch-Fluentd-Kibana logging and monitoring
gpu # Automatic enablement of Nvidia CUDA
helm # Helm 2 - the package manager for Kubernetes
helm3 # Helm 3 - Kubernetes package manager
host-access # Allow Pods connecting to Host services smoothly
inaccel # Simplifying FPGA management in Kubernetes
istio # Core Istio service mesh services
jaeger # Kubernetes Jaeger operator with its simple config
kata # Kata Containers is a secure runtime with lightweight VMS
keda # Kubernetes-based Event Driven Autoscaling
knative # The Knative framework on Kubernetes.
kubeflow # Kubeflow for easy ML deployments
linkerd # Linkerd is a service mesh for Kubernetes and other frameworks
metrics-server # K8s Metrics Server for API access to service metrics
multus # Multus CNI enables attaching multiple network interfaces to pods
openebs # OpenEBS is the open-source storage solution for Kubernetes
openfaas # OpenFaaS serverless framework
portainer # Portainer UI for your Kubernetes cluster
prometheus # Prometheus operator for monitoring and logging
rbac # Role-Based Access Control for authorisation
registry # Private image registry exposed on localhost:32000
traefik # traefik Ingress controller for external access
The issue is that the installation fails to connect
Bootstrap complete, controller "osm-vca" is now available in namespace "controller-osm-vca"
Now you can run
juju add-model <model-name>
to create a new model to deploy k8s workloads.
Track bootstrap_k8s bootstrap_k8s_ok: https://osm.etsi.org/InstallLog.php?&installation_id=1675938237-omPN1Pev3LcDNDca&local_ts=1675938261&event=bootstrap_k8s&operation=bootstrap_k8s_ok&value=&comment=&tags=
Creating OSM model
Added 'osm' model on microk8s/localhost with credential 'microk8s' for user 'admin'
Deploying OSM with charms
Creating Password Overlay
ERROR resolving with preferred channel: Post "https://api.charmhub.io/v2/charms/refresh": dial tcp 127.0.0.1:443: connect: connection refused
{}
ERROR application "vca" not found (not found)
{}
ERROR application "nbi" not found (not found)
{}
ERROR application "ng-ui" not found (not found)
{}
ERROR application "grafana" not found (not found)
{}
ERROR application "prometheus" not found (not found)
Waiting for deployment to finish...
Installed on a new fresh Ubuntu installation; same result:
$ ./install_osm.sh --charmed --small-profile --k8s_monitor
...
Restarting kubelet
DNS is enabled
Creating Juju controller "osm-vca" on microk8s/localhost
Bootstrap to Kubernetes cluster identified as microk8s/localhost
Fetching Juju Dashboard 0.8.1
Creating k8s resources for controller "controller-osm-vca"
Downloading images
Starting controller pod
Bootstrap agent now started
Contacting Juju controller at 192.168.1.189 to verify accessibility...
Bootstrap complete, controller "osm-vca" is now available in namespace "controller-osm-vca"
Now you can run
juju add-model <model-name>
to create a new model to deploy k8s workloads.
Track bootstrap_k8s bootstrap_k8s_ok: https://osm.etsi.org/InstallLog.php?&installation_id=1676120445-7L4IkhgoqFjDv4aW&local_ts=1676120791&event=bootstrap_k8s&operation=bootstrap_k8s_ok&value=&comment=&tags=
Creating OSM model
Added 'osm' model on microk8s/localhost with credential 'microk8s' for user 'admin'
Deploying OSM with charms
Creating Password Overlay
ERROR resolving with preferred channel: Post "https://api.charmhub.io/v2/charms/refresh": dial tcp 127.0.0.1:443: connect: connection refused
{}
ERROR application "vca" not found (not found)
{}
ERROR application "nbi" not found (not found)
{}
ERROR application "ng-ui" not found (not found)
{}
ERROR application "grafana" not found (not found)
{}
ERROR application "prometheus" not found (not found)
Waiting for deployment to finish...
Model "osm" is empty.
0 / 15 services active
...
0 / 15 services active
Timed out waiting for OSM services to become ready
### sab 11 feb 2023, 14:16:41, CET check_osm_deployed: FATAL error: deploy_osm Timed out waiting for services to become ready
Track end fatal: https://osm.etsi.org/InstallLog.php?&installation_id=1676120445-7L4IkhgoqFjDv4aW&local_ts=1676121401&event=end&operation=fatal&value=deploy_osm&comment='Timed_out_waiting_for_services_to_become_ready'&tags=
BACKTRACE:
### FATAL_TRACK /usr/share/osm-devops/common/logging 40
### check_osm_deployed /usr/share/osm-devops/installers/charmed_install.sh 326
### deploy_charmed_osm /usr/share/osm-devops/installers/charmed_install.sh 298
### main /usr/share/osm-devops/installers/charmed_install.sh 552
### MAIN non_file_source 0
### MAIN non_file_source
### MAIN non_file_source
### MAIN non_file_source
### MAIN non_file_source
### MAIN non_file_source
-------
### sab 11 feb 2023, 14:16:42, CET main: FATAL error: charmed_install charmed_install.sh failed
Track end fatal: https://osm.etsi.org/InstallLog.php?&installation_id=1676120445-7L4IkhgoqFjDv4aW&local_ts=1676121402&event=end&operation=fatal&value=charmed_install&comment='charmed_install.sh_failed'&tags=
BACKTRACE:
### FATAL_TRACK /usr/share/osm-devops/common/logging 40
### main /usr/share/osm-devops/installers/full_install_osm.sh 1230
### MAIN non_file_source 0
### MAIN non_file_source
### MAIN non_file_source
### MAIN non_file_source
### MAIN non_file_source
### MAIN non_file_source
### MAIN non_file_source
### MAIN non_file_source
-------
$ juju deploy osm-vca-integrator --channel=13.0/stable
ERROR resolving with preferred channel: Post "https://api.charmhub.io/v2/charms/refresh": dial tcp 127.0.0.1:443: connect: connection refused
As far as my network configuration, the installation is on a single machine (my PC) with a fresh Ubuntu installation, the OSM installation is the first command issued on this machine and there is no problem to download anything is needed.