Confluence Performance Framework - issues

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

1 answer

0 votes

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

Performance Testing Framework For Confluence

Bitbucket - Elastic Experiement Executor

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

Bitbucket - Elastic Experiment Executor List

I'm mainly focused on Confluence Performance Framework. 

Reference Link:Performance Testing Framework For Confluence

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,633 views 4 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you