{"action":"opened","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/5941","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/5941/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/5941/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/5941/events","html_url":"https://github.com/rancher/rancher/issues/5941","id":176063039,"number":5941,"title":"Intermediate Error when rolling back - \"Rolling-Back (Failed to allocate instance [container:1i1809]: volumeFrom instance is not running : Dependencies readiness error)\"","user":{"login":"sangeethah","id":4266958,"avatar_url":"https://avatars.githubusercontent.com/u/4266958?v=3","gravatar_id":"","url":"https://api.github.com/users/sangeethah","html_url":"https://github.com/sangeethah","followers_url":"https://api.github.com/users/sangeethah/followers","following_url":"https://api.github.com/users/sangeethah/following{/other_user}","gists_url":"https://api.github.com/users/sangeethah/gists{/gist_id}","starred_url":"https://api.github.com/users/sangeethah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangeethah/subscriptions","organizations_url":"https://api.github.com/users/sangeethah/orgs","repos_url":"https://api.github.com/users/sangeethah/repos","events_url":"https://api.github.com/users/sangeethah/events{/privacy}","received_events_url":"https://api.github.com/users/sangeethah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancher/rancher/labels/kind/bug","name":"kind/bug","color":"fc2929"},{"url":"https://api.github.com/repos/rancher/rancher/labels/setup/automation","name":"setup/automation","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"assignees":[{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/rancher/rancher/milestones/76","html_url":"https://github.com/rancher/rancher/milestones/Release%201.2.0-pre3","labels_url":"https://api.github.com/repos/rancher/rancher/milestones/76/labels","id":1919842,"number":76,"title":"Release 1.2.0-pre3","description":"- Catalog bindings\r\n- V2 API\r\n- Journal system for improved visibility into launching services\r\n- FlexVolume for NFS and EBS\r\n- Scheduler Improvements Part 1\r\n- Go Agent?\r\n- GitHub Auth?\r\n- Telemetry","creator":{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars.githubusercontent.com/u/11410997?v=3","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false},"open_issues":58,"closed_issues":39,"state":"open","created_at":"2016-08-03T04:06:13Z","updated_at":"2016-09-09T17:24:28Z","due_on":"2016-09-07T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-09-09T17:24:28Z","updated_at":"2016-09-09T17:24:28Z","closed_at":null,"body":"Server version -  v1.2.0-pre3-rc1\r\n\r\nSteps to reproduce the problem:\r\n\r\nPerform the following action using rancher-compose:\r\n\r\nCreate service with volume mounts.\r\nUpgrade this service.\r\nOnce in upgraded state , rollback.\r\n\r\nservice is still in \"rolling-back\" state when we expect it to be in \"active\" state.\r\n\r\n\r\n```\r\nadmin_client = <cattle.Client object at 0x7f0442ac3fd0>\r\nclient = <cattle.Client object at 0x7f0442805890>\r\nrancher_compose_container = None, socat_containers = None\r\n\r\n    @if_compose_data_files\r\n    def test_rancher_compose_inservice_upgrade_volume_mount_sidekick2_rollback(\r\n            admin_client, client, rancher_compose_container, socat_containers):\r\n    \r\n        env_name = random_str().replace(\"-\", \"\")\r\n    \r\n        # Create an environment using up\r\n        launch_rancher_compose_from_file(\r\n            client, INSERVICE_SUBDIR, \"dc_inservice3_1.yml\", env_name,\r\n            \"up -d\", \"Creating stack\", \"rc_inservice3_1.yml\")\r\n    \r\n        env, service = get_env_service_by_name(client, env_name, \"test1\")\r\n    \r\n        assert service.state == \"active\"\r\n        check_config_for_service_sidekick(\r\n            admin_client, service, env_name+\"_test1_sk1\",\r\n            {\"testsk1\": \"value1\"}, 1, primary=False)\r\n        check_config_for_service_sidekick(\r\n            admin_client, service, env_name+\"_test1_sk2\",\r\n            {\"testsk2\": \"value1\"}, 1, primary=False)\r\n        primary_containers = get_service_containers_with_name(\r\n            admin_client, service, env_name+\"_test1\", 1)\r\n    \r\n        # Upgrade environment using up --upgrade\r\n        launch_rancher_compose_from_file(\r\n            client, INSERVICE_SUBDIR, \"dc_inservice3_4.yml\", env_name,\r\n            \"up --upgrade -d\", \"Upgrading\")\r\n        service = client.reload(service)\r\n        assert service.state == \"upgraded\"\r\n    \r\n        check_config_for_service_sidekick(\r\n            admin_client, service, env_name+\"_test1\",\r\n            {\"test1\": \"value1\"}, 0)\r\n        check_config_for_service_sidekick(\r\n            admin_client, service, env_name+\"_test1\",\r\n            {\"test1\": \"value1\"}, 1)\r\n    \r\n        check_config_for_service_sidekick(\r\n            admin_client, service, env_name+\"_test1_sk1\",\r\n            {\"testsk1\": \"value1\"}, 0)\r\n        check_config_for_service_sidekick(\r\n            admin_client, service, env_name+\"_test1_sk1\",\r\n            {\"testsk1\": \"value1\"}, 1, primary=False)\r\n        check_config_for_service_sidekick(\r\n            admin_client, service, env_name+\"_test1_sk2\",\r\n            {\"testsk2\": \"value1\"}, 0)\r\n        check_config_for_service_sidekick(\r\n            admin_client, service, env_name+\"_test1_sk2\",\r\n            {\"testsk2\": \"value2\"}, 1, primary=False)\r\n        check_container_state(client, primary_containers, \"stopped\")\r\n    \r\n        # Rollback upgrade\r\n    \r\n        launch_rancher_compose_from_file(\r\n            client, INSERVICE_SUBDIR, \"dc_inservice3_4.yml\", env_name,\r\n            \"up --rollback -d\", \"Started\")\r\n        service = client.reload(service)\r\n>       assert service.state == \"active\"\r\nE       assert 'rolling-back' == 'active'\r\nE         - rolling-back\r\nE         + active\r\n```"}}
{"actor":{"display_login":"sangeethah"}}