konveyor / mig-demo-apps

A collection of apps ideal for migration demos
Apache License 2.0
15 stars 69 forks source link

Issues with robot-shopwhile migrating from 3.11 to 4.5 IBM ROKS single AZ #28

Open vidya191 opened 3 years ago

vidya191 commented 3 years ago

Hello Team

I find issues with the robot-shop . The application works fine when installed in source or target but when tried to migrate from source to target using MTC it throws error. Please check the logs and help me with a fix oc get pods NAME READY STATUS RESTARTS AGE cart-56d64d845-hwr6q 1/1 Running 0 69m catalogue-7b84494bf6-z55kj 1/1 Running 0 69m dispatch-86bd8f4886-td5lb 1/1 Running 0 69m mongodb-ffd467b6d-7f72s 0/1 CrashLoopBackOff 18 69m mysql-64f679d7b6-dkpf5 0/2 Init:CrashLoopBackOff 18 69m payment-74fffc4db4-hhc55 1/1 Running 0 69m rabbitmq-5bb66bb6c9-777dr 1/1 Running 0 69m ratings-65964c5f8f-mbmd5 1/1 Running 0 69m redis-5694467c97-9zvqz 1/1 Running 0 69m shipping-b798968df-c68rs 1/1 Running 6 69m user-84496cc588-c6kss 1/1 Running 0 69m web-79cb976f9-phj8d 1/1 Running 0 69m

oc logs -f mongodb-ffd467b6d-7f72s about to fork child process, waiting until server is ready for connections. forked process: 18 2021-02-11T11:16:22.658+0000 I CONTROL [main] SERVER RESTARTED 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] MongoDB starting : pid=18 port=27017 dbpath=/data/db 64-bit host=mongodb-ffd467b6d-7f72s 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] db version v3.6.1 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] git version: 025d4f4fe61efd1fb6f0005be20cb45a004093d1 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] allocator: tcmalloc 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] modules: none 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] build environment: 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] distmod: debian81 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] distarch: x86_64 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] target_arch: x86_64 2021-02-11T11:16:22.749+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 27017, ssl: { mode: "disabled" } }, processManagement: { fork: true, pidFilePath: "/tmp/docker-entrypoint-temp-mongod.pid" }, systemLog: { destination: "file", logAppend: true, path: "/proc/1/fd/1" } } 2021-02-11T11:16:22.751+0000 I STORAGE [initandlisten] exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /data/db, terminating 2021-02-11T11:16:22.751+0000 I CONTROL [initandlisten] now exiting 2021-02-11T11:16:22.751+0000 I CONTROL [initandlisten] shutting down with code:100 ERROR: child process failed, exited with error number 100 To see additional information in this output, start without the "--fork" option. [vidya@oc7382228470 Downloads]$ [vidya@oc7382228470 Downloads]$ oc logs -f mysql-64f679d7b6-dkpf5 error: a container name must be specified for pod mysql-64f679d7b6-dkpf5, choose one of: [dataloader mysql] or one of the init containers: [post-hook] [vidya@oc7382228470 Downloads]$ oc logs -f mysql-64f679d7b6-dkpf5 -c dataloader Error from server (BadRequest): container "dataloader" in pod "mysql-64f679d7b6-dkpf5" is waiting to start: PodInitializing

[vidya@oc7382228470 Downloads]$ oc logs -f mysql-64f679d7b6-dkpf5 -c mysql Error from server (BadRequest): container "mysql" in pod "mysql-64f679d7b6-dkpf5" is waiting to start: PodInitializing [vidya@oc7382228470 Downloads]$ oc logs -f mysql-64f679d7b6-dkpf5 -c post-hook cp: cannot create regular file '/var/lib/mysql/10-dump.sql.gz': Permission denied cp: cannot create regular file '/var/lib/mysql/20-ratings.sql': Permission denied [vidya@oc7382228470 Downloads]$ [vidya@oc7382228470 Downloads]$ [vidya@oc7382228470 Downloads]$ oc get sc NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE default (default) ibm.io/ibmc-file Delete Immediate false 10d ibmc-block-bronze ibm.io/ibmc-block Delete Immediate true 10d ibmc-block-custom ibm.io/ibmc-block Delete Immediate true 10d ibmc-block-gold ibm.io/ibmc-block Delete Immediate true 10d ibmc-block-retain-bronze ibm.io/ibmc-block Retain Immediate true 10d ibmc-block-retain-custom ibm.io/ibmc-block Retain Immediate true 10d ibmc-block-retain-gold ibm.io/ibmc-block Retain Immediate true 10d ibmc-block-retain-silver ibm.io/ibmc-block Retain Immediate true 10d ibmc-block-silver ibm.io/ibmc-block Delete Immediate true 10d ibmc-file-bronze ibm.io/ibmc-file Delete Immediate false 10d ibmc-file-bronze-gid ibm.io/ibmc-file Delete Immediate false 10d ibmc-file-custom ibm.io/ibmc-file Delete Immediate false 10d ibmc-file-gold ibm.io/ibmc-file Delete Immediate false 10d ibmc-file-gold-gid ibm.io/ibmc-file Delete Immediate false 10d ibmc-file-retain-bronze ibm.io/ibmc-file Retain Immediate false 10d ibmc-file-retain-custom ibm.io/ibmc-file Retain Immediate false 10d ibmc-file-retain-gold ibm.io/ibmc-file Retain Immediate false 10d ibmc-file-retain-silver ibm.io/ibmc-file Retain Immediate false 10d ibmc-file-silver ibm.io/ibmc-file Delete Immediate false 10d ibmc-file-silver-gid ibm.io/ibmc-file Delete Immediate false 10d [vidya@oc7382228470 Downloads]$ oc get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE mongodb-volume-claim Bound pvc-d2a7ab0d-2607-44c6-962f-dad79be2b1ae 20Gi RWO default 86m mysql-data-volume-claim Bound pvc-17c26d35-89cf-43e0-8983-18f25591c8aa 20Gi RWO default 86m redis-volume-claim Bound pvc-01b93ec0-7b62-40d3-944a-6397588a1aca 20Gi RWO default 86m

vidya191 commented 3 years ago

closing this request as its raised in Mig-operator repo.