jmeter-aci-terraform icon indicating copy to clipboard operation
jmeter-aci-terraform copied to clipboard

Erro on task Convert JMeter Results to JUnit Format

Open EdiFirst opened this issue 4 years ago • 12 comments

I didn't understand what is necessary to perform the most basic test and publish. At Jmeter folder I just let the sample.jmx I'm receiving the following error on the moment of Convert Jmeter Resullts:

image

I understand the script python don't found results.jtl , but the tasks before works without errors and generate this files on artifact:

image

What I'm missing out?

EdiFirst avatar Aug 05 '21 15:08 EdiFirst

Hello, anyone can help ? Follow more information: Im receiving the follow error on the Collect JMeter Controller and Worker Logs:

image

EdiFirst avatar Aug 11 '21 13:08 EdiFirst

Same issue here... but no idea how to fix. I think that the test did not even run

ghost avatar Aug 11 '21 14:08 ghost

Hey @allantargino please some ideia why this error ?

EdiFirst avatar Aug 16 '21 00:08 EdiFirst

@EdiFirst I pulled the newest version from the repository and then the issue was fixed. I think it had something to do with the az copy update.

ghost avatar Aug 17 '21 06:08 ghost

@EdiFirst I pulled the newest version from the repository and then the issue was fixed. I think it had something to do with the az copy update.

Thank you @leonK-BO but there was a trouble with az copy too , but I already solve. What version did you got ? It's generated the jtl ?

EdiFirst avatar Aug 17 '21 12:08 EdiFirst

@EdiFirst that one: https://github.com/Azure-Samples/jmeter-aci-terraform/tree/cdabee3a400a73e84fab6b4e6fc9e44788b9ef9b

ghost avatar Aug 17 '21 13:08 ghost

Hi @EdiFirst, sorry the delay. From the image, the JMX file seems to be not present on the storage mount. Have you tried the newest fix that @leonK-BO mentioned? Try to see if the jmx is present on the storage file share directly on Azure (using the portal or the CLI)

allantargino avatar Aug 17 '21 14:08 allantargino

Hi @EdiFirst, sorry the delay. From the image, the JMX file seems to be not present on the storage mount. Have you tried the newest fix that @leonK-BO mentioned? Try to see if the jmx is present on the storage file share directly on Azure (using the portal or the CLI)

No problem, yes the are files on storage: image Yes I saw the approach from @leonK-BO, but those azcopy tasks I already solved ,( just changed the path to results files as recommended):

image

It's like the jtl are not being generated by test execution. I'm not sure why this error: Can't open sample.jmx at task: 'RESULTS: Collect JMeter Controller and Worker Logs' This task should not try open sample.jmx should It ?

EdiFirst avatar Aug 17 '21 16:08 EdiFirst

So @allantargino @leonK-BO Please some idea? I added the same code from repo and I'm receiving the same error (about could not open sample.jmx) .

EdiFirst avatar Aug 20 '21 14:08 EdiFirst

It's like the jtl are not being generated by test execution. I'm not sure why this error: Can't open sample.jmx at task: 'RESULTS: Collect JMeter Controller and Worker Logs' This task should not try open sample.jmx should It ?

That task simply prints the JMeter logs from controller and worker(s), so one of the nodes actually couldn't find sample.jmx. Since the file was in the share, the next thing to check is if the share was mounted properly on the node. Did you happen to change this part in main.tf?

    volume {
      name                 = "jmeter"
      mount_path           = "/jmeter"
      read_only            = true
      storage_account_name = azurerm_storage_account.jmeter_storage.name
      storage_account_key  = azurerm_storage_account.jmeter_storage.primary_access_key
      share_name           = azurerm_storage_share.jmeter_share.name
    }

devlie avatar Sep 24 '21 20:09 devlie

Hey @devlie thank you by attention. Yes I change it from read_only to false. One detail that I realize running pwd inside de tf command was that the container is starting on the path: opt/apache-jmeter-5.1 (something like this), I believe because of that its not opening jmx file, because it doesn't exist on this path, the operation of copy are not working.

EdiFirst avatar Sep 29 '21 12:09 EdiFirst

Does anyone know how to find the artifacts in azure portal? Like this? image

axlvlv avatar Oct 02 '21 23:10 axlvlv