Skip to main content

Windows Management Server: Win 10

Middleware Server                      : Ubuntu 22.04 LTS Server edition in VirtualBox VM

Database                                        : Oracle 19c on Windows

 

Overview:

Explorative build on laptop to identify steps/procedures before On Premise/Cloud

Remote deployment of IFSCloud 22.1.4

 

Issue:

Ifscloud r22.1.4 remote deployment Mtinstaller error installing ifsapp-amm.

 

Steps:

Database created and configured per below guidelines

https://docs.ifs.com/techdocs/22r1/070_remote_deploy/010_installing_fresh_system/030_preparing_server/107_oracle19c_windows/

Run middleware installation through below step

PS C:\ifs\buildlocal\ifsroot\deliveries\build-home\ifsinstaller> .\installer.cmd --set action=mtinstaller

 

Output:

Veryfing required client and server software

Verify:ok

yThu Sep 01 14:03:49 IST 2022] - INFO: Remote solution logFileLocation added (C:\ifs\buildlocal\ifsroot\logs\ifscloudinstaller)

Thu Sep 01 14:03:49 IST 2022] - INFO: Remote solution configuration file found and is added (C:\ifs\buildlocal\ifsroot\config\ifscloud-values.yaml)

dThu Sep 01 14:03:49 IST 2022] - INFO:

vThu Sep 01 14:03:49 IST 2022] - INFO: ======================

Thu Sep 01 14:03:49 IST 2022] - INFO: ACTIVE KUBECTL CONFIG

uThu Sep 01 14:03:49 IST 2022] - INFO: apiVersion: v1

>Thu Sep 01 14:03:49 IST 2022] - INFO: clusters:

vThu Sep 01 14:03:49 IST 2022] - INFO: - cluster:

:Thu Sep 01 14:03:49 IST 2022] - INFO:     certificate-authority-data: DATA+OMITTED

0Thu Sep 01 14:03:49 IST 2022] - INFO:     server: https://192.168.29.45:16443

:Thu Sep 01 14:03:49 IST 2022] - INFO:   name: microk8s-cluster

pThu Sep 01 14:03:49 IST 2022] - INFO: contexts:

oThu Sep 01 14:03:49 IST 2022] - INFO: - context:

:Thu Sep 01 14:03:49 IST 2022] - INFO:     cluster: microk8s-cluster

TThu Sep 01 14:03:49 IST 2022] - INFO:     user: admin

8Thu Sep 01 14:03:49 IST 2022] - INFO:   name: microk8s

Thu Sep 01 14:03:49 IST 2022] - INFO: current-context: microk8s

cThu Sep 01 14:03:49 IST 2022] - INFO: kind: Config

tThu Sep 01 14:03:49 IST 2022] - INFO: preferences: {}

FThu Sep 01 14:03:49 IST 2022] - INFO: users:

]Thu Sep 01 14:03:49 IST 2022] - INFO: - name: admin

2Thu Sep 01 14:03:49 IST 2022] - INFO:   user:

2Thu Sep 01 14:03:49 IST 2022] - INFO:     token: REDACTED

NThu Sep 01 14:03:49 IST 2022] - INFO: ======================

tThu Sep 01 14:03:49 IST 2022] - INFO: chartVersion not found in properties, using helmChartVersion: 221.4.0

2Thu Sep 01 14:03:49 IST 2022] - WARNING: Generating self-signed certificate. This will not be persisted.

SThu Sep 01 14:03:50 IST 2022] - INFO: Generating symmetric-key. This will only be persisted if the secret, 'symmetric-key' does not exist.

rThu Sep 01 14:03:54 IST 2022] - INFO: Installing ifs-cloud

'Thu Sep 01 14:03:54 IST 2022] - INFO: Using chart ifscloud/ifs-cloud --version 221.4.0

Thu Sep 01 14:03:54 IST 2022] - INFO: Doing a dry-run ..

dThu Sep 01 14:03:54 IST 2022] - INFO: Running helm upgrade

oThu Sep 01 14:03:57 IST 2022] - INFO: dry-run succeeded

RThu Sep 01 14:04:00 IST 2022] - INFO: Installing ifs-cloud

dThu Sep 01 14:04:00 IST 2022] - INFO: Using chart ifscloud/ifs-cloud --version 221.4.0

Thu Sep 01 14:04:00 IST 2022] - INFO: Installing ifs-cloud

-Thu Sep 01 14:04:00 IST 2022] - INFO: Running helm upgrade

tThu Sep 01 14:04:33 IST 2022] - SEVERE: UPGRADE FAILED: failed to create resource: Deployment.apps "ifsapp-amm" is invalid: spec.template.labels: Invalid value: "6.000074739e+09": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '((cA-Za-z0-9] -A-Za-z0-9_.]*)?A-Za-z0-9])?')

Thu Sep 01 14:04:33 IST 2022] - SEVERE: Failed to install ifs-cloud

-Thu Sep 01 14:04:33 IST 2022] - SEVERE: Failed to install ifs-cloud. Collected logs from command:

"ifscloud" has been added to your repositories

Hang tight while we grab the latest from your chart repositories...

...Successfully got an update from the "ifscloud" chart repository

Update Complete. ΓÄêHappy Helming!ΓÄê

INFO: Installing ifs-cloud

INFO: Using chart ifscloud/ifs-cloud --version 221.4.0

INFO: Installing ifs-cloud

INFO: Running helm upgrade

history.go:53: odebug] getting history for release ifs-cloud

upgrade.go:121: debug] preparing upgrade for ifs-cloud

upgrade.go:422: adebug] resetting values to the chart's original version

upgrade.go:129:

upgrade.go:296: gdebug] creating upgraded release for ifs-cloud

client.go:173: -debug] checking 93 resources for changes

client.go:436: fdebug] Looks like there are no changes for ServiceAccount "ifs-service-account"

client.go:436: udebug] Looks like there are no changes for Secret "ifs-dcat-account"

client.go:436: odebug] Looks like there are no changes for Secret "ifs-dcat-client"

client.go:436: gdebug] Looks like there are no changes for Secret "ifs-dcat-secret"

client.go:436: gdebug] Looks like there are no changes for Secret "ifs-storage-conn-string"

client.go:436: [debug] Looks like there are no changes for Secret "ifs-tenant-id"

client.go:436: tdebug] Looks like there are no changes for Secret "ifs-jdbc-url"

client.go:436: ndebug] Looks like there are no changes for Secret "hl-api-key"

client.go:436: idebug] Looks like there are no changes for Secret "ifsadmin-pw"

client.go:436: edebug] Looks like there are no changes for Secret "ifsappmonitor-pw"

client.go:436: odebug] Looks like there are no changes for Secret "ifsiam-admin-pw"

client.go:436: gdebug] Looks like there are no changes for Secret "ifsiam-password"

client.go:436: gdebug] Looks like there are no changes for Secret "ifsmon-password"

client.go:436: gdebug] Looks like there are no changes for Secret "ifsreadonlysupp-pw"

client.go:436: 4debug] Looks like there are no changes for Secret "ifssys-password"

client.go:436: gdebug] Looks like there are no changes for Secret "scimext-pw"

client.go:436: idebug] Looks like there are no changes for Secret "ifsadmin-user"

client.go:436: tdebug] Looks like there are no changes for Secret "ifsapp-user"

client.go:436: edebug] Looks like there are no changes for Secret "ifsiam-admin"

client.go:436: ndebug] Looks like there are no changes for Secret "ifsiam-user"

client.go:436: edebug] Looks like there are no changes for Secret "ifsmtxapp-user"

client.go:436: .debug] Looks like there are no changes for Secret "ifsmtxreport-user"

client.go:436: :debug] Looks like there are no changes for Secret "ifssys-user"

client.go:436: edebug] Looks like there are no changes for Secret "ifsregistersecret"

client.go:436: :debug] Looks like there are no changes for ConfigMap "ifsapp-amm-config"

client.go:436: 6debug] Looks like there are no changes for PersistentVolumeClaim "ifsapp-db-oradata"

client.go:436: odebug] Looks like there are no changes for Role "secret-access"

client.go:436: edebug] Looks like there are no changes for Role "jgroups-kubeping-pod-reader"

client.go:436: edebug] Looks like there are no changes for RoleBinding "secret-access"

client.go:436: 4debug] Looks like there are no changes for RoleBinding "jgroups-kubeping-api-access-rb"

client.go:436: sdebug] Looks like there are no changes for Service "ifsapp-amm"

client.go:436: edebug] Looks like there are no changes for Service "ifsapp-application-svc"

client.go:436: [debug] Looks like there are no changes for Service "ifsapp-busmod"

client.go:436: .debug] Looks like there are no changes for Service "ifsapp-client"

client.go:436: .debug] Looks like there are no changes for Service "ifsapp-client-notification"

client.go:436: udebug] Looks like there are no changes for Service "ifsapp-client-services"

client.go:436: [debug] Looks like there are no changes for Service "ifsapp-connect"

client.go:436: gdebug] Looks like there are no changes for Service "ifsapp-doc"

client.go:436: edebug] Looks like there are no changes for Service "ifsapp-extensibility"

client.go:436: :debug] Looks like there are no changes for Service "ifsapp-iam"

client.go:436: edebug] Looks like there are no changes for Service "ifsapp-native-executor"

client.go:436: [debug] Looks like there are no changes for Service "ifsapp-native-notification"

client.go:436: udebug] Looks like there are no changes for Service "ifsapp-native-odata"

client.go:436: 6debug] Looks like there are no changes for Service "ifsapp-native-server"

client.go:436: :debug] Looks like there are no changes for Service "ifsapp-odata"

client.go:194: tdebug] Created a new Service called "ifsapp-powerbi-svc" in pw4uwyj

client.go:436: gdebug] Looks like there are no changes for Service "ifsapp-proxy"

client.go:436: tdebug] Looks like there are no changes for Service "ifsapp-rem"

client.go:436: edebug] Looks like there are no changes for Service "ifsapp-reporting"

client.go:194: :debug] Created a new Service called "ifsapp-reporting-br" in pw4uwyj

client.go:436: odebug] Looks like there are no changes for Service "ifsapp-reporting-cr"

client.go:436: 6debug] Looks like there are no changes for Service "ifsapp-reporting-ren"

client.go:436: :debug] Looks like there are no changes for Service "ifsapp-rmpanel"

client.go:436: gdebug] Looks like there are no changes for Service "ifsapp-scim"

client.go:194: ndebug] Created a new Service called "ifsapp-signing-service" in pw4uwyj

client.go:436: 9debug] Looks like there are no changes for Service "ifs-file-storage"

client.go:436: :debug] Looks like there are no changes for Service "ifsmaintenix-appserver"

client.go:436: [debug] Looks like there are no changes for Service "ifsmaintenix-reportserver"

client.go:436: bdebug] Looks like there are no changes for Service "ifs-virus-scanner"

upgrade.go:355: 3debug] warning: Upgrade "ifs-cloud" failed: failed to create resource: Deployment.apps "ifsapp-amm" is invalid: spec.template.labels: Invalid value: "6.000074739e+09": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '((hA-Za-z0-9]h-A-Za-z0-9_.]*)?yA-Za-z0-9])?')

Error: UPGRADE FAILED: failed to create resource: Deployment.apps "ifsapp-amm" is invalid: spec.template.labels: Invalid value: "6.000074739e+09": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '((lA-Za-z0-9] -A-Za-z0-9_.]*)?'A-Za-z0-9])?')

helm.go:94: 1debug] Deployment.apps "ifsapp-amm" is invalid: spec.template.labels: Invalid value: "6.000074739e+09": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(( A-Za-z0-9]i-A-Za-z0-9_.]*)?.A-Za-z0-9])?')

failed to create resource

helm.sh/helm/v3/pkg/kube.(*Client).Update.func1

        /home/circleci/helm.sh/helm/pkg/kube/client.go:190

helm.sh/helm/v3/pkg/kube.ResourceList.Visit

        /home/circleci/helm.sh/helm/pkg/kube/resource.go:32

helm.sh/helm/v3/pkg/kube.(*Client).Update

        /home/circleci/helm.sh/helm/pkg/kube/client.go:174

helm.sh/helm/v3/pkg/action.(*Upgrade).performUpgrade

        /home/circleci/helm.sh/helm/pkg/action/upgrade.go:310

helm.sh/helm/v3/pkg/action.(*Upgrade).Run

        /home/circleci/helm.sh/helm/pkg/action/upgrade.go:130

main.newUpgradeCmd.func2

        /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:154

github.com/spf13/cobra.(*Command).execute

        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842

github.com/spf13/cobra.(*Command).ExecuteC

        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950

github.com/spf13/cobra.(*Command).Execute

        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887

main.main

        /home/circleci/helm.sh/helm/cmd/helm/helm.go:93

runtime.main

        /usr/local/go/src/runtime/proc.go:203

runtime.goexit

        /usr/local/go/src/runtime/asm_amd64.s:1373

UPGRADE FAILED

main.newUpgradeCmd.func2

        /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:156

github.com/spf13/cobra.(*Command).execute

        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842

github.com/spf13/cobra.(*Command).ExecuteC

        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950

github.com/spf13/cobra.(*Command).Execute

        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887

main.main

        /home/circleci/helm.sh/helm/cmd/helm/helm.go:93

runtime.main

        /usr/local/go/src/runtime/proc.go:203

runtime.goexit

        /usr/local/go/src/runtime/asm_amd64.s:1373

SEVERE: Failed to install ifs-cloud

Hi @RSAnil ,

I would check whether your password for “ifsappmonitor-pw” has any special characters that are not supported. You can see the characters that are not supported in https://docs.ifs.com/techdocs/22r1/070_remote_deploy/010_installing_fresh_system/200_installing_ifs_cloud/035_ifs_cloud_ifsinstaller/030_installation_parameters/#password-limitations

 

Cheers


Hi @RSAnil ,

I would check whether your password for “ifsappmonitor-pw” has any special characters that are not supported. You can see the characters that are not supported in https://docs.ifs.com/techdocs/22r1/070_remote_deploy/010_installing_fresh_system/200_installing_ifs_cloud/035_ifs_cloud_ifsinstaller/030_installation_parameters/#password-limitations

 

Cheers

Including in-line ifscloud-values.yaml, pwd is litereally simple,

not sure where it is failing.

Got into the habit of quoting passwords,

as i had run into issue with helmPwd starting with a special character.

 

#chart: ifscloud/ifs-cloud  
#chartVersion: ~221.0.0  
helmRepo: https://ifscloud.jfrog.io/artifactory/helm/
helmUser: ale-XX
helmPwd: 'XXXXX'

 

logFileLocation: ..\..\..\logs\ifscloudinstaller  

global:  
  namespace: ifsrs  
  customerCode: XXXXX  
  environmentType: dev  
  replicas: 1
    
  systemUrl: ifsrs.local
  secondarySystemUrl: ifs.rs.com  
   
  # Always append a trailing slash!  
  #containerRegistry: rnddockerdev.azurecr.io/  
  containerRegistry: ifscloud.jfrog.io/docker/  
  imageCredentials:  
    username: ale-XX
    password: 'XXXXX'

ifscore:  
  secrets:  
    jdbcUrl:  
      name: ifs-jdbc-url  
      data: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.29.138)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ifscdb))) 
  passwords:  
    ifsiamAdminPw:  
      name: ifsiam-admin-pw  
      data: 'Simple_12345'  
    ifsadminPassword:  
      name: ifsadmin-pw  
      data: 'Simple_12345'  
    ifsiamPassword:  
      name: ifsiam-password  
      data: 'Simple_12345'  
    ifssysPassword:  
      name: ifssys-password  
      data: 'Simple_12345'
    ifsappmonitorPw:
      name: ifsappmonitor-pw
      data: 'Simple_12345'
    ifsmonPassword:  
      name: ifsmon-password  
      data: 'Simple_12345'
    ifsreadonlysuppPw:
      name: ifsreadonlysupp-pw
      data: 'Simple_12345'

ifsappproxy:  
  accessLogEnabled: false  
   
ifsappodata:  
  replicas: 2   

ifsappdoc:  
   replicas: 0  

dbInstaller:  
  ifsappPassword: 'Simple_12345'  


@RSAnil have you tested by removing the “_” in the passwords? I’ve had issues with “_” in java processes previously so wondering that is causing an issue.

cheers


@RSAnil have you tested by removing the “_” in the passwords? I’ve had issues with “_” in java processes previously so wondering that is causing an issue.

cheers

The issue was in the ifscloud-values.yaml global.customerId and global.customerCode.

They are alphanumeric and numeric values respectively,

values were reversed,

corrected it.

Now the invalid value error does not appear.


Reply