Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61051

Jobs are started on master instead of EC2 slaves randomly

    • EC2-Plugin 2.0.2

      Jenkins master runs on an AWS Linux 2. Jenkins uses the EC2 plugin to create slaves whenever needed and many jobs are assigned to slaves using the labels.

      Since upgrading to EC2 plugin 1.49 (and to Jenkins 2.217 which contains remoting 4.0) some jobs - randomly, it seems - are started on the master node instead of using the started slaves. The aws slave is started, but the workspace is created on master (in the user's home which should have been used on the slave). The job's console log says it is running on the slave but it is not true.

      Maybe this is not related to EC2 plugin as I don't see any change related to this problem in the 1.49 version's release history.

      Attachment: I created a snapshot about a node's script console page while - according to the Jenkins logs - it was used for building. I asked for the hostname and although the name of the node suggests it is a slave node, the hostname belongs to the master. And of course the workspace was created on master.

          [JENKINS-61051] Jobs are started on master instead of EC2 slaves randomly

          Gabor V created issue -
          Gabor V made changes -
          Attachment New: Screenshot 2020-02-11 at 13.59.23.png [ 50188 ]
          Description Original: Jenkins master runs on an AWS Linux 2. Jenkins uses the EC2 plugin to create slaves whenever needed and many jobs are assigned to slaves using the labels.

          Since upgrading to EC2 plugin 1.49 some jobs - randomly, it seems - are started on the master node instead of using the started slaves. The aws slave is started, but the workspace is created on master (in the user's home which should have been used on the slave). The job's console log says it is running on the slave but it is not true.

          Maybe this is not related to EC2 plugin as I don't see any change related to this problem in the 1.49 version's release history.
          New: Jenkins master runs on an AWS Linux 2. Jenkins uses the EC2 plugin to create slaves whenever needed and many jobs are assigned to slaves using the labels.

          Since upgrading to EC2 plugin 1.49 some jobs - randomly, it seems - are started on the master node instead of using the started slaves. The aws slave is started, but the workspace is created on master (in the user's home which should have been used on the slave). The job's console log says it is running on the slave but it is not true.

          Maybe this is not related to EC2 plugin as I don't see any change related to this problem in the 1.49 version's release history.

          Attachment: I created a snapshot about a node's script console page while - according to the Jenkins logs - it was used for building. I asked for the hostname and although the name of the node suggests it is a slave node, the hostname belongs to the master. And of course the workspace was created on master.
          Gabor V made changes -
          Assignee Original: FABRIZIO MANFREDI [ thoulen ] New: Jeff Thompson [ jthompson ]
          Gabor V made changes -
          Component/s New: remoting [ 15489 ]
          Labels Original: agents ec2 plugin slave New: agents ec2 plugin remoting slave
          Gabor V made changes -
          Description Original: Jenkins master runs on an AWS Linux 2. Jenkins uses the EC2 plugin to create slaves whenever needed and many jobs are assigned to slaves using the labels.

          Since upgrading to EC2 plugin 1.49 some jobs - randomly, it seems - are started on the master node instead of using the started slaves. The aws slave is started, but the workspace is created on master (in the user's home which should have been used on the slave). The job's console log says it is running on the slave but it is not true.

          Maybe this is not related to EC2 plugin as I don't see any change related to this problem in the 1.49 version's release history.

          Attachment: I created a snapshot about a node's script console page while - according to the Jenkins logs - it was used for building. I asked for the hostname and although the name of the node suggests it is a slave node, the hostname belongs to the master. And of course the workspace was created on master.
          New: Jenkins master runs on an AWS Linux 2. Jenkins uses the EC2 plugin to create slaves whenever needed and many jobs are assigned to slaves using the labels.

          Since upgrading to EC2 plugin 1.49 (and to Jenkins 2.217 which contains remoting 4.0) some jobs - randomly, it seems - are started on the master node instead of using the started slaves. The aws slave is started, but the workspace is created on master (in the user's home which should have been used on the slave). The job's console log says it is running on the slave but it is not true.

          Maybe this is not related to EC2 plugin as I don't see any change related to this problem in the 1.49 version's release history.

          Attachment: I created a snapshot about a node's script console page while - according to the Jenkins logs - it was used for building. I asked for the hostname and although the name of the node suggests it is a slave node, the hostname belongs to the master. And of course the workspace was created on master.
          Jeff Thompson made changes -
          Assignee Original: Jeff Thompson [ jthompson ]
          Gabor V made changes -
          Assignee New: Francis Upton [ francisu ]
          Raihaan Shouhell made changes -
          Assignee Original: Francis Upton [ francisu ] New: Raihaan Shouhell [ raihaan ]
          Raihaan Shouhell made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Raihaan Shouhell made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Raihaan Shouhell made changes -
          Released As New: EC2-Plugin 2.0.2
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

            raihaan Raihaan Shouhell
            gaborv Gabor V
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: