setup alphanet envrionement #510

Closed
opened 2023-02-10 07:45:07 +00:00 by bobinson · 16 comments
bobinson commented 2023-02-10 07:45:07 +00:00 (Migrated from gitlab.com)

Objective:

We need an environment to verify unstable releases of the Peerplays blockchain against various libraries critical tools. Eventually this environment should be integrated to our CI pipeline and provide a job to manually trigger deployment.

implementation

Deploy Peerplays blockchain release 1.5.21-alpha with Bitcoin, Hive and Ethereum SONs. & publish the credentials confidentially (As an internal note to this ticket). The deployments also have faucet & latest stable release of NEX. Coredumps must be enabled on the deployment environment.

The associated URLs:

alphanet.peerplays.download/api

nex-alphanet.peerplays.download

Log aggregation & tracing:

All logs must be accessible via https://grafana.peerplays.download/

Additional Deliverables:

  1. cli access to Bitcoin
  2. Bitcoin Addresses with funds
  3. Ethereum addresses with balances
  4. Hive test accounts and funds
**Objective:** We need an environment to verify unstable releases of the Peerplays blockchain against various libraries critical tools. Eventually this environment should be integrated to our CI pipeline and provide a job to manually trigger deployment. **implementation** Deploy Peerplays blockchain release `1.5.21-alpha` with Bitcoin, Hive and Ethereum SONs. & publish the credentials confidentially (As an internal note to this ticket). The deployments also have `faucet` & latest stable release of `NEX`. Coredumps must be enabled on the deployment environment. The associated URLs: `alphanet.peerplays.download/api` `nex-alphanet.peerplays.download` Log aggregation & tracing: All logs must be accessible via https://grafana.peerplays.download/ Additional Deliverables: 1. cli access to Bitcoin 2. Bitcoin Addresses with funds 3. Ethereum addresses with balances 4. Hive test accounts and funds
bobinson commented 2023-02-10 07:45:08 +00:00 (Migrated from gitlab.com)

assigned to @rilesdun

assigned to @rilesdun
bobinson commented 2023-02-10 07:45:33 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
bobinson commented 2023-02-10 07:46:18 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
tai.sama commented 2023-02-13 13:54:53 +00:00 (Migrated from gitlab.com)

changed due date to February 16, 2023

changed due date to February 16, 2023
bobinson commented 2023-02-13 14:31:54 +00:00 (Migrated from gitlab.com)
- Executables are available here https://gitlab.com/PBSA/peerplays/-/jobs/3754996385 - if faucet connection to API is not working, please use `cli_wallet` method.
bobinson commented 2023-02-14 11:13:35 +00:00 (Migrated from gitlab.com)

mentioned in issue PBSA/tools-libs/automated-testing#9

mentioned in issue PBSA/tools-libs/automated-testing#9
rilesdun commented 2023-02-17 15:30:37 +00:00 (Migrated from gitlab.com)

The alphanet is now available with the following URLs:

alphanet.peerplays.download/api

alphanet-faucet.peerplays.download

alphanet-nex.peerplays.download

You can checkout this devnet at:

ssh -i "pbsa.pem" bunker@192.168.20.169

Everything lives under the ~/devnet/ directory - All running instances are under tmux screens except peerplays.

Check whats running in the background with: sudo netstat -tulpn and tmux ls

You can connect to a tmux screen with tmux attach -t <screen_name>

All logs will be available at grafana.peerplays.download before the end of the day!

The alphanet is now available with the following URLs: `alphanet.peerplays.download/api` `alphanet-faucet.peerplays.download` `alphanet-nex.peerplays.download` You can checkout this devnet at: `ssh -i "pbsa.pem" bunker@192.168.20.169` Everything lives under the `~/devnet/` directory - All running instances are under tmux screens except peerplays. Check whats running in the background with: `sudo netstat -tulpn` and `tmux ls` You can connect to a tmux screen with `tmux attach -t <screen_name>` All logs will be available at grafana.peerplays.download before the end of the day!
rilesdun (Migrated from gitlab.com) closed this issue 2023-02-17 15:30:38 +00:00
bobinson (Migrated from gitlab.com) reopened this issue 2023-02-17 15:41:01 +00:00
bobinson commented 2023-02-17 15:41:53 +00:00 (Migrated from gitlab.com)

Hi @rilesdun - As noted above, please use the cli_wallet based work around to get faucet working.

Right now the faucet is failing:

image

Hi @rilesdun - As noted above, please use the `cli_wallet` based work around to get faucet working. Right now the faucet is failing: ![image](/uploads/5bb56f7055c84b9dd79b183ae31168d0/image.png)
bobinson commented 2023-02-17 16:25:32 +00:00 (Migrated from gitlab.com)

connecting via cli_wallet not working in secure mode:

bkb@bkb-dev-server1:~/src/peerplays$ ./programs/cli_wallet/cli_wallet -s wss://alphanet.peerplays.download/api   --chain-id 2c25aae5835fd54020329d4f150b04867e72cbd8f7f7b900a7c3da8a329a6014
Logging RPC to file: logs/rpc/rpc.log
Starting a new wallet with chain ID 2c25aae5835fd54020329d4f150b04867e72cbd8f7f7b900a7c3da8a329a6014 (from CLI)
0 exception: unspecified
TLS handshake failed
    {"message":"TLS handshake failed"}
    asio  websocket.cpp:436 operator()

    {"uri":"wss://alphanet.peerplays.download/api"}
    th_a  websocket.cpp:662 secure_connect

    {"uri":"wss://alphanet.peerplays.download/api"}
    th_a  websocket.cpp:635 connect
connecting via cli_wallet not working in secure mode: ``` bkb@bkb-dev-server1:~/src/peerplays$ ./programs/cli_wallet/cli_wallet -s wss://alphanet.peerplays.download/api --chain-id 2c25aae5835fd54020329d4f150b04867e72cbd8f7f7b900a7c3da8a329a6014 Logging RPC to file: logs/rpc/rpc.log Starting a new wallet with chain ID 2c25aae5835fd54020329d4f150b04867e72cbd8f7f7b900a7c3da8a329a6014 (from CLI) 0 exception: unspecified TLS handshake failed {"message":"TLS handshake failed"} asio websocket.cpp:436 operator() {"uri":"wss://alphanet.peerplays.download/api"} th_a websocket.cpp:662 secure_connect {"uri":"wss://alphanet.peerplays.download/api"} th_a websocket.cpp:635 connect ```
rilesdun commented 2023-02-17 18:50:46 +00:00 (Migrated from gitlab.com)

Seems we may need to reopen this issue - https://gitlab.com/PBSA/peerplays/-/issues/413

@bobinson

Seems we may need to reopen this issue - https://gitlab.com/PBSA/peerplays/-/issues/413 @bobinson
rilesdun commented 2023-02-17 19:55:17 +00:00 (Migrated from gitlab.com)

Logging is available at grafana.peerplays.download - Click Explore on the left then refer to below screenshot

username = devs
password = 2Bmq3urh9FUMcH

image

Logging is available at grafana.peerplays.download - Click `Explore` on the left then refer to below screenshot username = `devs` password = `2Bmq3urh9FUMcH` ![image](/uploads/880edccdaee3c4b170da2ce9a292fe1e/image.png)
bobinson commented 2023-02-21 07:13:01 +00:00 (Migrated from gitlab.com)

workaround :

cli wallet can be connected as ./cli_wallet -s ws://96.46.48.169:8090/api --chain-id 2c25aae5835fd54020329d4f150b04867e72cbd8f7f7b900a7c3da8a329a6014

workaround : cli wallet can be connected as `./cli_wallet -s ws://96.46.48.169:8090/api --chain-id 2c25aae5835fd54020329d4f150b04867e72cbd8f7f7b900a7c3da8a329a6014`
bobinson commented 2023-02-21 07:13:55 +00:00 (Migrated from gitlab.com)

@anagabhushana @skesarwani91

  1. Please verify NEX
  2. Work with @rilesdun and understand how to fetch logs - its going to be important as we need to deploy the automated tests against this environment
@anagabhushana @skesarwani91 1. Please verify NEX 2. Work with @rilesdun and understand how to fetch logs - its going to be important as we need to deploy the automated tests against this environment
bobinson commented 2023-02-21 07:17:38 +00:00 (Migrated from gitlab.com)

marked this issue as blocking PBSA/tools-libs/automated-testing#9

marked this issue as blocking PBSA/tools-libs/automated-testing#9
rilesdun (Migrated from gitlab.com) closed this issue 2023-02-22 14:16:22 +00:00
anagabhushana (Migrated from gitlab.com) reopened this issue 2023-03-07 15:29:32 +00:00
anagabhushana commented 2023-03-07 15:34:30 +00:00 (Migrated from gitlab.com)

Dear @rilesdun,

We were unable to see the logs for Alphanet transactions in Grafana tool.

Alphanet_testing.docx

image

Also, Grafana logs needs to be improved, by adding additional parameters for search options such as Account ID, account No, User Name..ect.
As of now its bit challenging to get the required logs.

Dear @rilesdun, We were unable to see the logs for Alphanet transactions in Grafana tool. [Alphanet_testing.docx](/uploads/39799642fa43eacef518ca9de6ae7c95/Alphanet_testing.docx) ![image](/uploads/cfbcf62718e33a4ac7546daa9fd5de16/image.png) Also, Grafana logs needs to be improved, by adding additional parameters for search options such as Account ID, account No, User Name..ect. As of now its bit challenging to get the required logs.
bobinson commented 2023-03-13 08:41:09 +00:00 (Migrated from gitlab.com)

mentioned in issue #520

mentioned in issue #520
rilesdun (Migrated from gitlab.com) closed this issue 2023-03-13 16:12:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#510
No description provided.