Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VTAdmin folder to release package #11683

Merged
merged 2 commits into from
Nov 22, 2022

Conversation

rsajwani
Copy link
Contributor

@rsajwani rsajwani commented Nov 10, 2022

Signed-off-by: Rameez Sajwani [email protected]

Description

When we try to install vitess with local method (https://vitess.io/docs/16.0/get-started/local/#install-vitess) for release 15.0, we are getting following error

bash
vtadmin-api is running!
  - API: http://localhost:14200/
  - Logs: /home/vitess/my-vitess-example/vtdataroot/tmp/vtadmin-api.out
  - PID: 43498

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/web/vtadmin/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/web/vtadmin/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vitess/.npm/_logs/2022-11-09T08_25_09_328Z-debug.log
vtadmin-web is running!
  - Browser: http://localhost:14201/
  - Logs: /home/vitess/my-vitess-example/vtdataroot/tmp/vtadmin-web.out
  - PID: 43529

upon inspection we found out that it is missing vtadmin folder under vitess. The PR fixes the release script to copy vtadmin folder to vitess root folder. It copies all the files under web/vtadmin right now.

Followed the steps here (https://vitess.io/docs/16.0/get-started/local/#install-vitess) after the fix and vtadmin seems to be working.

~/Downloads/vitess-15.0.0-e8c7e27/examples/local: ./101_initial_cluster.sh 
add /vitess/global
add /vitess/zone1
add zone1 CellInfo
Created cell: zone1
etcd start done...
Starting vtctld...
Starting MySQL for tablet zone1-0000000100...
Starting vttablet for zone1-0000000100...
HTTP/1.1 200 OK
Date: Thu, 10 Nov 2022 22:16:14 GMT
Content-Type: text/html; charset=utf-8

Starting MySQL for tablet zone1-0000000101...
Starting vttablet for zone1-0000000101...
HTTP/1.1 200 OK
Date: Thu, 10 Nov 2022 22:16:27 GMT
Content-Type: text/html; charset=utf-8

Starting MySQL for tablet zone1-0000000102...
Starting vttablet for zone1-0000000102...
HTTP/1.1 200 OK
Date: Thu, 10 Nov 2022 22:16:39 GMT
Content-Type: text/html; charset=utf-8

{
  "keyspace": {
    "served_froms": [],
    "keyspace_type": 0,
    "base_keyspace": "",
    "snapshot_time": null,
    "durability_policy": "semi_sync"
  }
}
vtorc is running!
  - UI: http://localhost:16000
  - Logs: /Users/rameezsajwani/Code/fork/vitess/vtdataroot/tmp/vtorc.out
  - PID: 40053

zone1-0000000100 commerce 0 primary localhost:15100 localhost:17100 [] 2022-11-10T22:16:43Z

New VSchema object:
{
  "sharded": false,
  "vindexes": {},
  "tables": {
    "corder": {
      "type": "",
      "column_vindexes": [],
      "auto_increment": null,
      "columns": [],
      "pinned": "",
      "column_list_authoritative": false
    },
    "customer": {
      "type": "",
      "column_vindexes": [],
      "auto_increment": null,
      "columns": [],
      "pinned": "",
      "column_list_authoritative": false
    },
    "product": {
      "type": "",
      "column_vindexes": [],
      "auto_increment": null,
      "columns": [],
      "pinned": "",
      "column_list_authoritative": false
    }
  },
  "require_explicit_routing": false
}
If this is not what you expected, check the input data (as JSON parsing will skip unexpected fields).
Waiting for vtgate to be up...
vtgate is up!
Access vtgate at http://Rameezs-MacBook-Pro.local:15001/debug/status
vtadmin-api is running!
  - API: http://localhost:14200
  - Logs: /Users/rameezsajwani/Code/fork/vitess/vtdataroot/tmp/vtadmin-api.out
  - PID: 40106


> [email protected] build
> react-scripts build

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Compiled successfully.

File sizes after gzip:

  440.1 kB (-198 B)  build/static/js/main.94f6ddc2.js
  15.62 kB           build/static/css/main.de7cb128.css

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  npm install -g serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

vtadmin-web is running!
  - Browser: http://localhost:14201
  - Logs: /Users/rameezsajwani/Code/fork/vitess/vtdataroot/tmp/vtadmin-web.out
  - PID: 40143
 ~/Downloads/vitess-15.0.0-e8c7e27/examples/local: ./401_teardown.sh       
Stopping vtadmin-web...
Stopping vtadmin-api...
./scripts/vtadmin-down.sh: line 9: kill: (40106) - No such process
Stopping vtorc.
./scripts/vtorc-down.sh: line 6: kill: (40053) - No such process
Stopping vtgate...
Shutting down tablet zone1-0000000100
Shutting down MySQL for tablet zone1-0000000100...
Shutting down tablet zone1-0000000101
Shutting down MySQL for tablet zone1-0000000101...
Shutting down tablet zone1-0000000102
Shutting down MySQL for tablet zone1-0000000102...
Stopping vtctld...
Stopping etcd...
All good! It looks like every process has shut down

Related Issue(s)

Checklist

  • "Backport me!" label has been added if this change should be backported
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

@vitess-bot
Copy link
Contributor

vitess-bot bot commented Nov 10, 2022

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • Ensure that the Pull Request has a descriptive title.
  • If this is a change that users need to know about, please apply the release notes (needs details) label so that merging is blocked unless the summary release notes document is included.

If a new flag is being introduced:

  • Is it really necessary to add this flag?
  • Flag names should be clear and intuitive (as far as possible)
  • Help text should be descriptive.
  • Flag names should use dashes (-) as word separators rather than underscores (_).

If a workflow is added or modified:

  • Each item in Jobs should be named in order to mark it as required.
  • If the workflow should be required, the maintainer team should be notified.

Bug fixes

  • There should be at least one unit or end-to-end test.
  • The Pull Request description should include a link to an issue that describes the bug.

Non-trivial changes

  • There should be some code comments as to why things are implemented the way they are.

New/Existing features

  • Should be documented, either by modifying the existing documentation or creating new documentation.
  • New features should have a link to a feature request issue or an RFC that documents the use cases, corner cases and test cases.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • vtctl command output order should be stable and awk-able.
  • RPC changes should be compatible with vitess-operator
  • If a flag is removed, then it should also be removed from VTop, if used there.

@rsajwani rsajwani self-assigned this Nov 10, 2022
Copy link
Member

@frouioui frouioui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good to me so far, we should however test it locally

@frouioui
Copy link
Member

This PR fixes #11679

@rsajwani rsajwani changed the title add vtadmin folder to release package Add VTAdmin folder to release package Nov 21, 2022
@rsajwani rsajwani marked this pull request as ready for review November 21, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: VTAdmin VTadmin interface Release Blocker: release-19.0 This item blocks the release on branch release-19.0 Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug Report: v15.0.0 Release doesn't have the web directory leading to VTAdmin not being deployed properly
2 participants