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

[DataStorage] Upgrade to EdgeX v2.0 (Ireland) #324

Closed
tiokim opened this issue Jul 1, 2021 · 8 comments
Closed

[DataStorage] Upgrade to EdgeX v2.0 (Ireland) #324

tiokim opened this issue Jul 1, 2021 · 8 comments
Labels
enhancement New feature or request
Projects

Comments

@tiokim
Copy link
Contributor

tiokim commented Jul 1, 2021

We should get out of temporary use and need to check the possibility of official EdgeX v2.0 for Home Edge.

@tiokim tiokim added the high priority It should be resolved ASAP label Jul 1, 2021
@tiokim tiokim added this to To do in DataStorage via automation Jul 1, 2021
@tiokim
Copy link
Contributor Author

tiokim commented Jul 5, 2021

I made the ds_ireland branch to test DataStorage with edgex v2.0.

  1. Run EdgeX containers without security
$ cd deployments/datastorage
$ docker-compose up -d
  1. Save configuration folders and files in configs/datastorage folder to /var/edge-orchestration/datastorage/
  2. Install 0mq as a shared library.
$ sudo apt-get install -y libzmq3-dev
  1. Create the container image
$ ./build.sh container x86_64
  1. Run edge-orchestration
$ docker run -it -d --privileged --network="host" --name edge-orchestration -e EDGEX_SECURITY_SECRET_STORE=false -v /var/edge-orchestration/:/var/edge-orchestration/:rw -v /var/run/docker.sock:/var/run/docker.sock:rw -v /proc/:/process/:ro edge-orchestration:coconut

@MoonkiHong
Copy link
Contributor

I made the ds_ireland branch to test DataStorage with edgex v2.0.

  1. Run EdgeX containers without security
$ cd deployments/datastorage
$ docker-compose up -d
  1. Save configuration folders and files in configs/datastorage folder to /var/edge-orchestration/datastorage/
  2. Create the container image
$ ./build.sh container x86_64
  1. Run edge-orchestration
$ docker run -it -d --privileged --network="host" --name edge-orchestration -e EDGEX_SECURITY_SECRET_STORE=false -v /var/edge-orchestration/:/var/edge-orchestration/:rw -v /var/run/docker.sock:/var/run/docker.sock:rw -v /proc/:/process/:ro edge-orchestration:coconut

@t25kim This is really a nice approach.

@MoonkiHong
Copy link
Contributor

@sun-sharma PTAL. (including #326) in terms of the test w.r.t. the PR.

@MoonkiHong
Copy link
Contributor

@tdrozdovsky PTAL in terms of build methodology from the impact of EdgeX v2.0 upgrade.

@tdrozdovsky
Copy link
Contributor

@tdrozdovsky PTAL in terms of build methodology from the impact of EdgeX v2.0 upgrade.

When a new build system is accepted, we can easily add any options

@sun-sharma
Copy link
Contributor

Hi @t25kim ,

I have been facing errors while trying to build using
$ ./build.sh container x86_64

Earlier I was getting errors related to ZMQ


# pkg-config --cflags  -- libzmq
Package libzmq was not found in the pkg-config search path.
Perhaps you should add the directory containing `libzmq.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libzmq' found
pkg-config: exit status 1
make: *** [Makefile:67: build-binary] Error 1

I tried doing the necessary installs

wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz
tar -xvzf zeromq-4.2.1.tar.gz
cd zeromq-4.2.1/

sudo apt-get install libtool pkg-config build-essential autoconf automake uuid-dev
sudo apt-get install checkinstall

./configure
make
sudo checkinstall
sudo ldconfig

Now, while building I am getting runtime errors


runtime: unexpected return pc for cmd/compile/internal/ssa.rewriteValuegeneric_OpLess32 called from 0x0
stack: frame={sp:0xc000161658, fp:0xc000161688} stack=[0xc00015e000,0xc000166000)

Did you encounter such issues ?

@tiokim
Copy link
Contributor Author

tiokim commented Jul 7, 2021

Hi @t25kim ,

I have been facing errors while trying to build using
$ ./build.sh container x86_64

Earlier I was getting errors related to ZMQ


# pkg-config --cflags  -- libzmq
Package libzmq was not found in the pkg-config search path.
Perhaps you should add the directory containing `libzmq.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libzmq' found
pkg-config: exit status 1
make: *** [Makefile:67: build-binary] Error 1

I tried doing the necessary installs

wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz
tar -xvzf zeromq-4.2.1.tar.gz
cd zeromq-4.2.1/

sudo apt-get install libtool pkg-config build-essential autoconf automake uuid-dev
sudo apt-get install checkinstall

./configure
make
sudo checkinstall
sudo ldconfig

Now, while building I am getting runtime errors


runtime: unexpected return pc for cmd/compile/internal/ssa.rewriteValuegeneric_OpLess32 called from 0x0
stack: frame={sp:0xc000161658, fp:0xc000161688} stack=[0xc00015e000,0xc000166000)

Did you encounter such issues ?

Please install 0mq with apt-get like below.

$ sudo apt-get install -y libzmq3-dev

@tiokim tiokim added enhancement New feature or request and removed high priority It should be resolved ASAP labels Aug 10, 2021
@tiokim tiokim moved this from To do to In progress in DataStorage Sep 9, 2021
@tiokim tiokim moved this from In progress to To do in DataStorage Oct 5, 2021
@tiokim
Copy link
Contributor Author

tiokim commented Dec 3, 2021

EdgeX v2.1(Jakarta) has been released. We will think of what version of edgex should be taken.

@tiokim tiokim closed this as completed Dec 3, 2021
DataStorage automation moved this from To do to Done Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

4 participants