Re: BEGINNERS BUGS TO HELP ME LEARN CEPH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Am sorry if i wasn't explicit in my previous mail.

I followed the documentation in
ceph/src/pybind/mgr/dashboard/HACKING.rst to setup the frontend and
backend of the dashboard project.

In the course of setting up the backend according to this
documentation i am suppose to run a requirement.txt file to install
the backend dependencies then
finally run ./run-backend-api-tests.sh to start the dashboard test for
the backend. I run this in the directory
ceph/src/pybind/mgr/dashboard/. It runs to an extend and then  ends
with :

...
2018-10-15 11:12:26,460.460 INFO:tasks.mgr.dashboard.helper:request
POST to https://kerlyn-HP-2000-Notebook-PC:7789/api/auth
/tmp/tmp.X5FpgkMNOV/venv/local/lib/python2.7/site-packages/urllib3/connectionpool.py:858:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding
certificate verification is strongly advised. See:
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
2018-10-15 11:12:27,239.239 INFO:__main__:Starting test:
test_access_permissions (tasks.mgr.dashboard.test_cephfs.CephfsTest)
2018-10-15 11:12:27,241.241 INFO:__main__:Running ['./bin/ceph',
'health', '--format=json']
2018-10-15 11:12:34,878.878 INFO:__main__:Running ['./bin/ceph',
'health', '--format=json']
2018-10-15 11:12:42,370.370 INFO:__main__:Running ['./bin/ceph',
'health', '--format=json']
2018-10-15 11:12:49,854.854 INFO:__main__:Running ['./bin/ceph',
'health', '--format=json']
2018-10-15 11:12:57,178.178 INFO:__main__:Running ['./bin/ceph',
'health', '--format=json']
2018-10-15 11:12:59,913.913 INFO:__main__:test_access_permissions
(tasks.mgr.dashboard.test_cephfs.CephfsTest) ... ERROR
2018-10-15 11:12:59,914.914 INFO:__main__:Stopped test:
test_access_permissions (tasks.mgr.dashboard.test_cephfs.CephfsTest)
in 32.673671s
2018-10-15 11:12:59,915.915 INFO:__main__:
2018-10-15 11:12:59,916.916
INFO:__main__:======================================================================
2018-10-15 11:12:59,917.917 INFO:__main__:ERROR:
test_access_permissions (tasks.mgr.dashboard.test_cephfs.CephfsTest)
2018-10-15 11:12:59,918.918
INFO:__main__:----------------------------------------------------------------------
2018-10-15 11:12:59,918.918 INFO:__main__:Traceback (most recent call last):
2018-10-15 11:12:59,919.919 INFO:__main__:  File
"/home/kerlyn/FOSS/ceph/qa/tasks/mgr/dashboard/helper.py", line 147,
in setUp
2018-10-15 11:12:59,919.919 INFO:__main__:    self.wait_for_health_clear(20)
2018-10-15 11:12:59,921.921 INFO:__main__:  File
"/home/kerlyn/FOSS/ceph/qa/tasks/ceph_test_case.py", line 112, in
wait_for_health_clear
2018-10-15 11:12:59,921.921 INFO:__main__:
self.wait_until_true(is_clear, timeout)
2018-10-15 11:12:59,922.922 INFO:__main__:  File
"/home/kerlyn/FOSS/ceph/qa/tasks/ceph_test_case.py", line 145, in
wait_until_true
2018-10-15 11:12:59,922.922 INFO:__main__:    raise
RuntimeError("Timed out after {0}s".format(elapsed))
2018-10-15 11:12:59,923.923 INFO:__main__:RuntimeError: Timed out after 20s
2018-10-15 11:12:59,923.923 INFO:__main__:
2018-10-15 11:12:59,924.924
INFO:__main__:----------------------------------------------------------------------
2018-10-15 11:12:59,924.924 INFO:__main__:Ran 10 tests in 400.857s
2018-10-15 11:12:59,924.924 INFO:__main__:
2018-10-15 11:12:59,925.925 INFO:__main__:FAILED (errors=1, skipped=1)
2018-10-15 11:12:59,925.925 INFO:__main__:
2018-10-15 11:12:59,926.926
INFO:__main__:======================================================================
2018-10-15 11:12:59,926.926 INFO:__main__:ERROR:
test_access_permissions (tasks.mgr.dashboard.test_cephfs.CephfsTest)
2018-10-15 11:12:59,927.927
INFO:__main__:----------------------------------------------------------------------
2018-10-15 11:12:59,927.927 INFO:__main__:Traceback (most recent call last):
2018-10-15 11:12:59,928.928 INFO:__main__:  File
"/home/kerlyn/FOSS/ceph/qa/tasks/mgr/dashboard/helper.py", line 147,
in setUp
2018-10-15 11:12:59,928.928 INFO:__main__:    self.wait_for_health_clear(20)
2018-10-15 11:12:59,929.929 INFO:__main__:  File
"/home/kerlyn/FOSS/ceph/qa/tasks/ceph_test_case.py", line 112, in
wait_for_health_clear
2018-10-15 11:12:59,929.929 INFO:__main__:
self.wait_until_true(is_clear, timeout)
2018-10-15 11:12:59,930.930 INFO:__main__:  File
"/home/kerlyn/FOSS/ceph/qa/tasks/ceph_test_case.py", line 145, in
wait_until_true
2018-10-15 11:12:59,930.930 INFO:__main__:    raise
RuntimeError("Timed out after {0}s".format(elapsed))
2018-10-15 11:12:59,930.930 INFO:__main__:RuntimeError: Timed out after 20s
2018-10-15 11:12:59,931.931 INFO:__main__:
2018-10-15 11:13:15.039 7fe7462efa80 -1 WARNING: all dangerous and
experimental features are enabled.
2018-10-15 11:13:15.043 7fe7462efa80 -1 WARNING: all dangerous and
experimental features are enabled.
2018-10-15 11:13:15.051 7fe7462efa80 -1 WARNING: all dangerous and
experimental features are enabled.
2018-10-15 11:13:15.367 7f813e923a80 -1 WARNING: all dangerous and
experimental features are enabled.
2018-10-15 11:13:15.371 7f813e923a80 -1 WARNING: all dangerous and
experimental features are enabled.
2018-10-15 11:13:15.379 7f813e923a80 -1 WARNING: all dangerous and
experimental features are enabled.


After setting up the frontend, when i ng serve i get the following:

...
** Angular Live Development Server is listening on localhost:4200,
open your browser on http://localhost:4200/ **
 10% building modules 3/3 modules 0 active[HPM] Proxy created: /api/
->  https://localhost:8443
[HPM] Subscribed to http-proxy events:  [ 'error', 'close' ]
[HPM] Proxy created: /ui-api/  ->  https://localhost:8443
[HPM] Subscribed to http-proxy events:  [ 'error', 'close' ]

Date: 2018-10-15T10:17:26.170Z
Hash: 624fde1f4c6a80c1e3e1
Time: 172751ms
chunk {main} main.js, main.js.map (main) 1.18 MB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 410 kB
[initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 536 kB  [rendered]
chunk {styles} styles.js, styles.js.map (styles) 292 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 7.16 MB [initial] [rendered]
ℹ 「wdm」: Compiled successfully.


when i try to login using the credentials username: admin and
password:admin i get this error on the console
"POST http://localhost:4200/api/auth 504 (Gateway Timeout)"

and then, this appears on the terminal running the frontend:

[HPM] POST /api/auth -> https://localhost:8443
[HPM] Error occurred while trying to proxy request /api/auth from
localhost:4200 to https://localhost:8443 (ECONNREFUSED)
(https://nodejs.org/api/errors.html#errors_common_system_errors)

Please help me out.

Thanks,
Kerlyn.
On Mon, Oct 15, 2018 at 8:56 AM kefu chai <tchaikov@xxxxxxxxx> wrote:
>
> On Sat, Oct 13, 2018 at 4:33 PM Nkep Kerlyn <kerlynmanyi@xxxxxxxxx> wrote:
> >
> > Please can someone help me.
> > On Fri, Oct 12, 2018 at 10:08 AM Nkep Kerlyn <kerlynmanyi@xxxxxxxxx> wrote:
> > >
> > > Hi Sir,
> > >
> > > Greetings to you. Please I wish to work on this Issue ( #35691).
> > >
> > > I followed the dashboard developer documentation in HACKING.rst to
> > > setup the development environment for both the frontend and the
> > > backend of the dashboard since the issue requires working on the
> > > dashboard frontend code. According to this documentation i am suppose
> > > to run a requirement.txt file to install the backend dependencies then
> > > finally run ./run-backend-api-tests.sh to start the dashboard test for
> > > the backend. It runs and ends with a test_access_permission error. So
>
> you might want to be more specific what the error is. after grepping
> the code, i found `test_access_permissions` tests in 3 different test
> cases, and they are testing the authorization functionality of
> dashboard backend when accessing different API entities. the access in
> test_access_permissions tests is supposed to get HTTP 403. but i am
> not sure what is the "error" you have.
>
> > > i tried running it with sudo but i still get the same error. A
> > > screenshot named backend  of this error has been attached to this
> > > mail.
>
> i am afraid that ceph-devel does not allow attachments. probably you
> could post the failure message to some pastebin service, like,
> https://pastebin.com and https://paste.fedoraproject.org if it's text
> only. and i think the plain text is easier for readers of your mail.
>
> > >
> > > For the frontend of this dashboard, it builds completely and after
> > > serving it, i can load the ceph dashboard but I cant login to it .
> > > I have also attached a screenshot of the proxy.conf.json file and also
> > > the error at the frontend.
>
> ditto.
>
> > >
> > >
> > > While waiting for your reply,
> > >
> > > Thanks,
> > > Kerlyn Nkep.
> > >
> > >
> > >
> > > On Wed, Oct 10, 2018 at 11:26 AM Nkep Kerlyn <kerlynmanyi@xxxxxxxxx> wrote:
> > > >
> > > > Hi everyone,
> > > >
> > > > Please I wish to find out how to edit an issue to specify that am working on it.
> > > >
> > > > Thanks
> > > > Kerlyn Nkep.
> > > > On Mon, Oct 8, 2018 at 4:29 AM Jos Collin <jcollin@xxxxxxxxxx> wrote:
> > > > >
> > > > >
> > > > > On Sunday 07 October 2018 05:31 PM, Nkep Kerlyn wrote:
> > > > > > Hi list,
> > > > > >
> > > > > > I have been able to fix my earlier errors and the others i encountered
> > > > > > while trying to setup my system for ceph.
> > > > > >
> > > > > > I think the error i faced was due to some other package which was
> > > > > > installed on my system. This is because, in the cause of my struggle
> > > > > > to fix the error my system crashed. After setting up a new linux
> > > > > > system, the building phase commands ./do_cmake.sh, cd build and make
> > > > > > ran completely.
> > > > > >
> > > > > > During the running phase that is "../src/vstart.sh --debug --new -x
> > > > > > --localhost --bluestore" i faced another error which looked as such:
> > > > > >
> > > > > > ...
> > > > > > File "/usr/local/bin/ceph", line 128, in <module>
> > > > > >     import rados
> > > > > > ImportError: librados.so.2: cannot open shared object file: No such
> > > > > > file or directory
> > > > > >
> > > > > > I tried locating the file "locate librados.so.2" in which case i found this
> > > > > >
> > > > > > /home/kerlyn/FOSS/ceph/build/lib/librados.so.2
> > > > > > /home/kerlyn/FOSS/ceph/build/lib/librados.so.2.0.0
> > > > > >
> > > > > > After running sudo apt-get install ceph , then i tried running ceph
> > > > > > cluster again . I got it working and now am able to access the
> > > > > > dashboard.
> > > > > >
> > > > > > Since my system is now up and running, i wish to ask if you can
> > > > > > propose me a beginners task  i can start working on.
> > > > >
> > > > > There is a typo here, if you want to fix:
> > > > > http://docs.ceph.com/docs/master/dev/internals/
> > > > > s/BlkKin/Blkin
> > > > >
> > > > > Search here and find an easy task by yourself:
> > > > > http://tracker.ceph.com/projects/
> > > > >
> > > > > See:
> > > > > https://www.youtube.com/watch?v=t5UIehZ1oLs
> > > > > http://docs.ceph.com/docs/master/dev/
> > > > >
> > > > > >
> > > > > > Thanks,
> > > > > > Kerlyn Nkep.
> > > > >
> > > > >
>
>
>
> --
> Regards
> Kefu Chai




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux