Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Fixed] Unable to make limbo
04-22-2018, 06:08 PM (This post was last modified: 05-13-2018 03:24 PM by lingu.)
Post: #1
[Fixed] Unable to make limbo
I ran into the following error on g1b.

----------------------
18:06:00 lingu@g1b-2:/home/lingu/forest/d-thinker/dt> site=g1b make limbo
Makefile:188: *** The portal 10.6.14.20 is not in /thinker/etc/ips.cfg. Stop.
----------------------

---
20180513/gl: Mark as fixed.
Find all posts by this user
Quote this message in a reply
04-23-2018, 12:08 PM
Post: #2
RE: Unable to make limbo
Can't repeat.

Code:
[zma@host201:~/forest/d-thinker/dt]$ site=g1b make limbo
"Not using default site config /thinker/etc/soft/think/mic.pcf"
portal 127.0.0.1 list "ips.psudo"
rm -f ./release/util/limbo/think/think* ./release/think.tar.gz
mkdir -p /thinker/net/zma/Limbo/Packages
mkdir -p release/think-ship
rm -rf release/think-ship/think-pre
cp -R src/pre release/think-ship/think-pre
cp src/MIT/think-pre.pcf release
cd release/think-ship && \
tar cfz ../think-pre.tar.gz think-pre && \
cd -
/home/zma/forest/d-thinker/dt
mv release/think-pre.tar.gz release/think-pre.pcf /thinker/net/zma/Limbo/Packages/g1b
mv: target ‘/thinker/net/zma/Limbo/Packages/g1b’ is not a directory
make: *** [xlimbo-pre] Error 1

But this seems not related to this.

After the dir is ready, it is fine.

Code:
[zma@host201:~/forest/d-thinker/dt]$ site=g1b make limbo
"Not using default site config /thinker/etc/soft/think/mic.pcf"
portal 127.0.0.1 list "ips.psudo"
rm -f ./release/util/limbo/think/think* ./release/think.tar.gz
mkdir -p /thinker/net/zma/Limbo/Packages
mkdir -p release/think-ship
rm -rf release/think-ship/think-pre
cp -R src/pre release/think-ship/think-pre
cp src/MIT/think-pre.pcf release
cd release/think-ship && \
tar cfz ../think-pre.tar.gz think-pre && \
cd -
/home/zma/forest/d-thinker/dt
mv release/think-pre.tar.gz release/think-pre.pcf /thinker/net/zma/Limbo/Packages/g1b
./release/util/package.sh

Prepare and download D-thinker dependencies...

>> Checking commands: tar bzip2
Passed all commands checking.
--> Checking code trees: bin dt-common utilib
Found these code trees: bin dt-common utilib
Trying to fetch the newest rc branch of all code trees.
----> update bin
The Ground is the directory where all the code trees reside. Since no GROUND_DIR environment variable is set, the Ground is set to/home/zma/forest

Already on 'rc'
Already up-to-date.
----> update dt-common
The Ground is the directory where all the code trees reside. Since no GROUND_DIR environment variable is set, the Ground is set to/home/zma/forest

Already on 'rc'
Already up-to-date.
----> update utilib
The Ground is the directory where all the code trees reside. Since no GROUND_DIR environment variable is set, the Ground is set to/home/zma/forest

Already on 'rc'
Warning: the RSA host key for 'codb.d-thinker.org' differs from the key for the IP address '115.231.209.243'
Offending key for IP in /home/zma/.ssh/known_hosts:159
Matching host key in /home/zma/.ssh/known_hosts:27
Already up-to-date.
Passed all code trees checking.

Generate package think.tar.gz ...

Congratulations!
You have successfully created a DT installation package under

  think.tar.gz

You may copy it to the portal of the cluster to install it.
You can run 'make help' for help info.

cp src/MIT/think.pcf ./release
## Unify the limbo packaging with normal packaging 20170226/gl
## ./release/util/limbo/pack.sh
mv release/think.pcf release/think.tar.gz /thinker/net/zma/Limbo/Packages/g1b

The lines seems in this block you added before:

Code:
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 182) ifndef portal
80ffb54b (Lin Gu           2016-02-11 13:18:41 +0800 183)   $(info portal not defined, searching IPs in "$(wildcard $(ip_list_file))")
80ffb54b (Lin Gu           2016-02-11 13:18:41 +0800 184)   portal := $(shell head -n 1 $(ip_list_file))
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 185) else
0f86d265 (Lin Gu           2016-04-29 16:50:56 +0800 186)   portal2 := $(shell grep $(portal) $(ip_list_file))
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 187)   ifeq ("$(portal2)", "")
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 188)     $(error The portal $(portal) is not in $(ip_list_file)))
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 189)   else
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 190)     portal = $(portal2)
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 191)   endif
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 192) endif

These lines seems for checking during installation instead of package building.

One way to handle this may be to isolate these checkings to be invoked for installation targets only.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-04-2018, 09:07 PM
Post: #3
RE: Unable to make limbo
(04-23-2018 12:08 PM)zma Wrote:  The lines seems in this block you added before:

Code:
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 182) ifndef portal
80ffb54b (Lin Gu           2016-02-11 13:18:41 +0800 183)   $(info portal not defined, searching IPs in "$(wildcard $(ip_list_file))")
80ffb54b (Lin Gu           2016-02-11 13:18:41 +0800 184)   portal := $(shell head -n 1 $(ip_list_file))
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 185) else
0f86d265 (Lin Gu           2016-04-29 16:50:56 +0800 186)   portal2 := $(shell grep $(portal) $(ip_list_file))
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 187)   ifeq ("$(portal2)", "")
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 188)     $(error The portal $(portal) is not in $(ip_list_file)))
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 189)   else
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 190)     portal = $(portal2)
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 191)   endif
e9fe5635 (Lin Gu           2016-02-06 02:41:45 +0800 192) endif

These lines seems for checking during installation instead of package building.

One way to handle this may be to isolate these checkings to be invoked for installation targets only.

Here the confusion is from the mixed Makefile and Makefile.site -- we use Makefile for both limbo and installation.

But we may not want to remove this re-use of the same Makefile for two purposes -- we may open-source think some day and one Makefile is good for the community that does not use our limbo system.

Even in an on-site installation, we may not always want to mandate that the portal is in the ips file -- maybe the developer does not have the ips setup, either.

So I relaxed this part of checking in cod://dt commit b390dbf
Find all posts by this user
Quote this message in a reply
05-13-2018, 03:24 PM
Post: #4
RE: Unable to make limbo
Marking this to be fixed.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: