Confluence Performance Framework - issues
Asked by Tony:

Made all the required pre-requisite configuration and executed "Run.py" python script with python 2.7. We are getting the below error.

*\[root@esjirv20 e3\]# python --version*

*Python 2.7.5*

*\[root@esjirv20 e3\]# ./Run.py -r confluence-users*

*Traceback (most recent call last):*

*File "./Run.py", line 21, in \<module\>*

*from provisioning.confluence.SetupHelper import SetupHelper*

*File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in \<module\>*

*from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \\*

*File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in \<module\>*

*from mechanize import ParseResponse, urlopen, urljoin*

*ImportError: cannot import name ParseResponse*

Please help us to debug the same


Answers:
author: Adrien Ragot _Requirement Yogi_
body: It's because the methods of Mechanize have changed. I had version 0.4.2 and ParseResponse didn't exist, indeed.

Solution:

\`\`\`

pip uninstall mechanize

pip install mechanize==0.2.5

\`\`\`

comments: author: Diego
body: Hey [@Adrien Ragot _Requirement Yogi_](/t5/user/viewprofilepage/user-id/227009) , thanks for jumping into this thread! Let us know if this tip has helped you [@Tony](/t5/user/viewprofilepage/user-id/1588121) . Looking forward to your findings.


author: Diego
body: Hello there Tony, thanks for coming by!  
Could you clarify for us **which of these pages** have you visited during the preparation for testing:

**[Atlassian Performance Testing](https://confluence.atlassian.com/enterprise/atlassian-performance-testing-framework-935575100.html)**

**[Performance Testing Framework For Confluence](https://confluence.atlassian.com/display/ENTERPRISE/Performance+Testing+Framework+for+Confluence)**

**[Bitbucket - Elastic Experiement Executor](https://bitbucket.org/atlassian/elastic-experiment-executor?_ga=2.255201418.341676742.1544445801-1770418407.1541684782#markdown-header-experiments)**

Also are you trying to run one of the **pre-defined experiments** or have you c**reated your own** ?  
List of pre-defined experiments:

**[Bitbucket - Elastic Experiment Executor List](https://bitbucket.org/atlassian/elastic-experiment-executor/src/522f895a2e5540c293b08bfbb53e307ef19ee58d/e3-home/experiments/)**

comments: author: Tony
body: I'm mainly focused on Confluence Performance Framework.

Reference Link:**[Performance Testing Framework For Confluence](https://confluence.atlassian.com/display/ENTERPRISE/Performance+Testing+Framework+for+Confluence?_ga=2.191766318.507400924.1544597232-1537586250.1485962912)**

PHASE I Environmental Setup- Completed

PHASE II Pending tasks

Define experiments \& Execute

Execute the scripts

Gather the results

Analysis the results

Reports

**By Executing**$ ./Orchestrate.py -e confluence-users

/bin/sh: /usr/local/bin/cloudtoken: No such file or directory

2018-11-23 23:13:57,909 - MainThread - ERROR - Unable to locate '/root/.config/cloudtoken/tokens.json' unable to load AWS credentials, trying to proceed without them.

Traceback (most recent call last):

File "./Orchestrate.py"

**- Actions**

* Removed all Bitbucket files from repository
* Commented all AWS reference - /opt/elastic-experiment-executor/e3/e3.yaml
* Removed PublicNetwork.template file from repo

**++In Python 2.7.5:++**

*\[root@esjirv20 e3\]# python --version*

*Python 2.7.5*

*./Orchestrate.py -e confluence-users*

*Traceback (most recent call last):*

*File "./Orchestrate.py", line 13, in \<module\>*

*from Run import Run*

*File "/opt/elastic-experiment-executor/e3/Run.py", line 21, in \<module\>*

*from provisioning.confluence.SetupHelper import SetupHelper*

*File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in \<module\>*

*from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \\*

*File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in \<module\>*

*from mechanize import ParseResponse, urlopen, urljoin*

*ImportError: cannot import name ParseResponse*

\[root@esjirv20 e3\]# ./Run.py -r confluence-users

Traceback (most recent call last):

File "./Run.py", line 21, in \<module\>

from provisioning.confluence.SetupHelper import SetupHelper

File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in \<module\>

from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \\

File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in \<module\>

from mechanize import ParseResponse, urlopen, urljoin

ImportError: cannot import name ParseResponse

**In Python 3:**

\[root@hzisotv82 e3\]# /usr/bin/python3 ./Orchestrate.py -e confluence-users

Traceback (most recent call last):

File "./Orchestrate.py", line 10, in \<module\>

from Analyze import run_rrd_analysis

File "/opt/elastic-experiment-executor/e3/Analyze.py", line 5, in \<module\>

from analysis.rrdtool.Analyze import graph_experiment

File "/opt/elastic-experiment-executor/e3/analysis/rrdtool/Analyze.py", line 198, in \<module\>

type=click.Choice(e3.get_runs()))

File "/opt/elastic-experiment-executor/e3/common/E3.py", line 55, in get_runs

run_dir = self.get_run_dir()

File "/opt/elastic-experiment-executor/e3/common/E3.py", line 78, in get_run_dir

return os.path.join(self.get_e3_home(), 'runs')

File "/opt/elastic-experiment-executor/e3/common/E3.py", line 39, in get_e3_home

e3_home = self._config.get('e3', {'home': None}).get('home')

AttributeError: 'NoneType' object has no attribute 'get'

++Queries:++

* Performance Framework possible to use in Confluence Standalone?
* Please let us know the exact python which needs to be used to execute the confluence performance frame work? Python 2.7.x or Python3?
* How we can define e3.yaml?
* Performance Framework applicable only in AWS environment ?

Regards,

Tony


Tags: atl-adm

confluence-server

elastic-experiment-executor

performance

server