Red Hat Bugzilla – Bug 964104
Fails to migrate for zend-5.6 apps with jenkins client added
Last modified: 2015-05-14 19:18:46 EDT
Description of problem:
If trying to migrate zend-5.6 app with jenkins client added, it would be failed with error shown as below:
Migrating app 'zendjenk' gear 'zendjenk' with uuid '519591d4548dd90a47000003' on node 'ip-10-152-178-145' for user: firstname.lastname@example.org
Failed to migrate with cmd: '/usr/bin/rhc-admin-migrate --login 'email@example.com' --migrate-gear '519591d4548dd90a47000003' --app-name 'zendjenk' --version '2.0.28'' after 2 tries with exception: Failed migrating gear. Rerun with: /usr/bin/rhc-admin-migrate --login 'firstname.lastname@example.org' --migrate-gear '519591d4548dd90a47000003' --app-name 'zendjenk' --version '2.0.28'
Migrating gear on node with: /usr/bin/rhc-admin-migrate --login 'email@example.com' --migrate-gear '519591d4548dd90a47000003' --app-name 'zendjenk' --version '2.0.28'
Caught an exception during internal migration steps: Cartridge manifest not found: /var/lib/openshift/519591d4548dd90a47000003/node_modules/metadata/manifest.yml missing
/usr/bin/rhc-admin-migrate --login 'firstname.lastname@example.org' --migrate-gear '519591d4548dd90a47000003' --app-name 'zendjenk' --version '2.0.28'
It can work well if migrate for a single zend-5.6 cartridge app, or zend-5.6 app with other addon cartridges like postgresql.8.5, mysql-5.1 and etc.
Version-Release number of selected component (if applicable):
Upgrading devenv-stage_353 to devenv_3235 and migrate
Steps to Reproduce:
1. Launch devenv-stage_353
2. Create a zend-5.6 app with jenkins-client added
3. Add V1 marker to node
4. scp -r ~/devenv-local and /etc/yum.repos.d/* from devenv_3235 instance to same location on devenv-stage_353 instance
5. yum update -y --enablerepo devenv-local
6. Run oo-admin-clear-pending-ops
7. Remove the v1 marker from the node
rm -f /var/lib/openshift/.settings/v1_cartridge_format
8. Clear the broker cache
9. Restart the rhc-broker and mcollective
10. Run migrate-mongo-2.0.28
11. Run rhc-admin-migrate --version 2.0.28
12. Check migrate log for the app and check app status.
It's failed during the migration with jenkins client.
It should be successful.
zend + jenkins client combo migrated successfully.
> Marking step zend_hook complete
> Marking step zend_connect_frontend complete
> Migrating cartridge jenkins-client
> Marking step jenkins-client_create_directory complete
> Marking step jenkins-client_setup complete
> Marking step jenkins-client_erb complete
> applying jenkins-client-1.4 migration post-process
> Marking step jenkins-client_hook complete
> Marking step jenkins-client_connect_frontend complete
> Pre-migration state: started
> Post-migration response code: 200
The error list in comment 1 appears to be from nodejs. We have made several related changes but were never able to recreate the issue. If you can recreate the issue, any additional info you can provide would be helpful.
Verified on devenv_stage_353 migrated to devenv_3246, zend-5.6 app with jenkins client added can be migrated successfully. Thanks.