Wednesday, 2020-03-25

*** tosky has quit IRC00:32
openstackgerritMerged openstack/horizon master: Fix Horizon to work with the latest pyScss  https://review.opendev.org/71427401:01
*** btully has joined #openstack-horizon01:28
*** btully has quit IRC01:32
*** spatel has joined #openstack-horizon01:56
*** gyee has quit IRC02:21
*** vishalmanchanda has joined #openstack-horizon05:03
*** spatel has quit IRC05:04
*** btully has joined #openstack-horizon05:05
*** btully has quit IRC05:10
*** dklyle has quit IRC05:50
*** vesper11 has quit IRC07:16
*** vesper has joined #openstack-horizon07:16
*** e0ne has joined #openstack-horizon07:56
*** ChanServ sets mode: +o e0ne07:56
*** kevko has joined #openstack-horizon08:14
*** tkajinam has quit IRC08:19
*** tosky has joined #openstack-horizon08:24
*** rpittau|afk is now known as rpittau08:31
*** pbing19 has joined #openstack-horizon08:58
*** pbing19 has quit IRC09:19
*** Andreas681 has joined #openstack-horizon09:33
*** kevko_ has joined #openstack-horizon09:47
*** pbing19 has joined #openstack-horizon09:48
Andreas681Are there any good methods to ensure that cache-data are wiped? We're working on a horizon panel and we all get different "versions" of the same plugin, and we suspect that there has something to do with cache data.10:00
Andreas681Creating a new server to ensure that it's wiped is a bit unmanageable, to say the least..10:01
Andreas681uninstalling the plugin, removing all files and restarting server doesn't help10:02
*** e0ne has quit IRC10:03
*** e0ne has joined #openstack-horizon10:04
*** ChanServ sets mode: +o e0ne10:04
*** pbing19 has quit IRC10:08
*** pbing19 has joined #openstack-horizon10:10
*** rcernin has quit IRC10:17
Andreas681`./clean.sh` and `./unstack.sh`doesn't solve the problem either10:21
*** btully has joined #openstack-horizon10:32
e0neAndreas681: what actually cache do you mean?10:33
*** pbing19 has quit IRC10:33
Andreas681I'm not really sure. Somehow I can't make changes to the horizon panel because it loads from old data10:34
Andreas681I'm gonna try a hard reboot, and se if it updates10:36
*** btully has quit IRC10:36
Andreas681Ok, so `sudo reboot` will apply the changes, but this is a little bit tedious :(10:38
Andreas681Is there a easier way to do it? `sudo service apache2 restart` doesn't do the trick10:38
*** pbing19 has joined #openstack-horizon10:40
*** Andreas681 has quit IRC11:13
kklimondais horizon backwards compatible with other openstack services, i.e. can I use ussuri horizon to interact with train and stein clouds when K2K federation or regions are in place?11:19
*** Andreas681 has joined #openstack-horizon11:20
e0neAndreas681: horizon uses memcache too. did you try to restart it?11:21
e0nekklimonda: in theory only. we don't test such setup11:22
Andreas681e0ne How do I restart memcache?11:23
e0neAndreas681: sudo systemctl  restart memcached11:24
kklimondae0ne: would that be considered a bug if horizon from any release N is not working with underlying cloud from release N-1 or N-2?11:24
*** tosky is now known as tosky_11:24
e0neAndreas681: btw, what actually data is not refreshed after apache restart?11:24
e0nekklimonda: https://docs.openstack.org/horizon/latest/contributor/policy.html#back-end-service-support11:26
Andreas681e0ne I'm just trying to change a header in `/horizon/static/dashboard/myplugin/myplugin/panel.html`11:27
kklimondae0ne: thanks, that seems to be clear enough11:27
openstackgerritGeorgina Shippey proposed openstack/horizon stable/train: Forwards LOGOUT_URL to templates.  https://review.opendev.org/71492011:29
Andreas681e0ne ok `sudo systemctl  restart memcached` seems to do the trick! Thanks11:39
*** tosky_ is now known as tosky11:40
e0ne:)11:41
*** rpittau is now known as rpittau|bbl11:42
amotokie0ne: horizon 18.2.0 has been released, so pyscss2 is no longer referred in openstack repos. I believe we've switch back to pyscss in the master branch :)11:52
*** spatel has joined #openstack-horizon11:53
e0neamotoki: :)11:58
*** spatel has quit IRC11:58
e0neamotoki: I have to add a release note and backport it to stable11:58
amotokie0ne: I have one thing I wonder why?12:01
amotokie0ne: looking at pyscss git log, libpcre-dev was used from pyscss 1.3.4 and nothing looks  unchanged.12:01
amotokie0ne: I wonder why libpcre3-dev is needed to add when we use pyscss 1.3.6 (or pyscss2)12:02
amotokie0ne: do you have any idea on this?12:02
e0neamotoki: I'm not sure.. looks like it depends on a setuptools fix. maybe for an older pyscss it didn't compile excension12:03
*** kevko_ has quit IRC12:37
*** kevko has quit IRC12:37
*** kevko_ has joined #openstack-horizon12:38
*** kevko has joined #openstack-horizon12:38
openstackgerritIvan Kolodyazhny proposed openstack/horizon master: Add a release note about upgrading pyScss to v1.3.6  https://review.opendev.org/71493312:47
*** spatel has joined #openstack-horizon12:59
amotokie0ne: you're right. setup.py change to follow-up setuptools 46 now makes the C extension mandatory.12:59
amotokie0ne: I have a concern that it means we need to add libpcre3-dev to bindep.txt to all horizon plugins13:00
e0nehm...13:00
amotokie0ne: and if we move this route in stable branches too it will affect the stable branches too.13:00
*** rpittau|bbl is now known as rpittau13:00
e0neI'm ok to have this in a stable branches13:01
e0nebut I don't like an idea to update every plugin to add a bindep13:01
kevkohi guys, will you fix issue when pyscss is not installable via pip (review py37 job for example) because can't be compiled ?13:15
kevkoexample : https://19862c796f0176e05bae-03c0af7271380f8d13c3735dacc9c317.ssl.cf2.rackcdn.com/709208/2/check/openstack-tox-py37/23fbb36/job-output.txt13:18
*** pbing19 has quit IRC13:18
NizarsHi, we are developing a plugin for Horizon to mange role access based policies.13:57
NizarsWe have created a template panel and a backend in python and a front end using angularjs static files.13:57
NizarsThe process to install the plugin might not be the best way to do so but we were able to create a bash file that does the following:13:57
Nizars1. Check for existing pip package, dashboard enabled files and horizon static dashboard files and removes them.13:57
Nizars    1A. Check if a pip package already exists using the same name, if such a pip package is found it removes it using: python3 -m pip uninstall policy-ui.13:57
*** Nizars has quit IRC13:57
*** Nizars has joined #openstack-horizon13:57
e0nekevko: hi. new pyscss requires libpcre3-dev to be installed. we're discussing how we want to fix it for plugins too13:57
Nizars    1B. Check if horizon dashboard enabled files already exist with the same names (2  files _90_....py & _91_....py), if such files are found it removes them using the rm command.13:57
Nizars14:57     1C. Check if static files already exist in the static/dashboard/policy, if they are found it will remove them.13:57
Nizars14:57     1D. Checks if there is a .git folder in the plugin's inner directory (policy_ui), if found it will remove it.13:57
Nizars14:57     1E. Checks if a package already exists in the dist directory in the plugin's inner directory (policy_ui), if found it will remove it.13:57
Nizars14:57     1F. Checks if there is an egg-info directory in the plugin's inner directory (policy_ui), if found it will remove it.13:57
Nizars2. Creates the plugin's install package.13:58
Nizars    2A. Initialize a repository in the plugin's inner directory (policy_ui) by calling: git init, git add . and git commit -m "temporary repo for installer packaging".13:58
Nizars    2B. Run the python setup by pointing it to the requirement file using the command: python3 -m pip install -r requirements.txt.13:58
Nizars    2C. Creates the plugin's install package using the command: python3 setup.py sdist.13:58
Nizars    2D. Installs the plugin using the created package in the previous step using the command: pip install policy-ui --no-index --find-links ./dist/.13:58
Nizars    2E. Clean up: removes the repo created for the packaging of the files for the installer, the created package in sdist and  egg-info  using: sudo rm -r .git/, sudo rm -r ./dist/ , sudo rm -r ./policy_ui.egg-info.13:58
Nizars3. Add static and enabled files to Horizon dashboard.13:59
Nizars    3A. Copies the enabled files to: /opt/stack/horizon/openstack_dashboard/enabled/.13:59
Nizars    3B. Copies the static files to: /opt/stack/horizon/static/dashboard/policy/.13:59
Nizars4. Restart apache2 and memcached services.13:59
Nizars    4A. Restarts Apache2 service by calling the command: sudo service apache2 restart.13:59
Nizars    4B. Restarts Memcached service by calling the command: sudo service memcached restart.13:59
NizarsAt this point the Horizon dashboard is reloaded in the browser with bypassing the browser cache by pressing the keys: ctrl + F5.13:59
NizarsMy questions are:14:00
NizarsQ1. Is this the best way to install the plugin? Is there a way to install the plugin without having to create a repository and then removing it just to make sure the pbr gets all the files?14:00
NizarsQ2. The reason this installation process deletes existing files and restarts the Apache2 and Memcached services is to ensure that the Horizon dashboard is loading the latest modifications made to the plugin and that nothing is cached somewhere which can cause errors to show about missing files after new changes are made to the plugin in the browser console. Is there anything else we can do to ensure that14:00
NizarsHorizon doesn't use any cached files from previous plugin installations that differ?14:00
NizarsQ3. using the command sudo cp -vrf ./policy_ui/static/dashboard/. /opt/stack/horizon/static/dashboard/ in the install.bash script makes ownership changes to /opt/stack/horizon/static/dashboard/policy/ directory which requires us to run the command: sudo chmod -vR 777 /opt/stack/horizon/static/dashboard/policy/ in order to modify them again. Why does this happen to the static files but not to the enabled files14:00
Nizarswhen they are copied using the command: sudo cp -vf ./policy_ui/enabled/_90_project_policy_panelgroup.py /opt/stack/horizon/openstack_dashboard/enabled/. Can this be dealt with without calling the chmod command in the install.bash script after the static files copy command?14:00
NizarsQ4. The current plugin structure in the repository is as such: horizon-policies-plugin/policy-ui/policy_ui/14:01
Nizars    * horizon-policies-plugin/: The project's root directory containing the git and readme files.14:01
Nizars    * horizon-policies-plugin/policy-ui/: The plugin's root directory containing the plugin's setup.py, setup.conf, requirements.txt files for installing the plugin.14:01
Nizars    * horizon-policies-plugin/policy-ui/policy_ui/: The plugin's files root directory containing the python panels, enabled and static files.14:01
Nizars    The question is, is this structuring fine? or can the installation process be improved by making the policy-ui directory the project's root directory?14:01
NizarsThe code of the install.bash script can be found here: https://github.com/nizos/horizon-policies-plugin/blob/master/policy-ui/install.bash14:01
NizarsThe code for the plugin itself can be found here: https://github.com/nizos/horizon-policies-plugin14:01
NizarsSorry for the wall of text and thank you for looking at this. Any and all feedback and tips are really appreciated. :)14:01
Nizarshttps://www.irccloud.com/pastebin/RYLIM10X/Horizon%20Plugin%20Install%20question14:05
*** happyhemant has joined #openstack-horizon14:06
e0neamotoki: https://github.com/Kronuz/pyScss/issues/393 this one should make c extension optional again.14:25
e0neamotoki: so we'll need just to bump requirements when it'll be merged and released14:25
*** tmazur has joined #openstack-horizon14:29
*** dklyle has joined #openstack-horizon14:52
*** ChanServ sets mode: +o dklyle14:52
amotokie0ne: I'd like to test it after the meeting15:02
e0neamotoki: it would be awesome!15:03
amotokie0ne: meeting time :)15:03
amotokihttps://github.com/Kronuz/pyScss/pull/39415:14
amotokiI will test it w/ and w/o libprec3-dev after the meeting15:15
amotokiotherwise, all horizon plugins need to add libprec3-dev to their bindep.txt15:15
amotokiit is the thing we would like to avoid.15:15
amotokithat's all about the master branch.15:16
amotokianything other on the master branch?15:16
amotokiwe still have the issue in stable branches15:17
amotokithe current plan is to use pyscss 1.3.6 (new version) in stable branches15:17
e0neamotoki: wrong channel?15:17
amotokih.......15:17
amotokiaga.....15:18
rdopierae0ne: this is the error: https://paste.centos.org/view/d1b671eb15:26
e0nerdopiera: could you please check pyScss version?15:27
rdopierae0ne: it was 1.3.5, so we tried to update to 1.3.6 but it didn't help15:32
*** gyee has joined #openstack-horizon15:40
*** pbing19 has joined #openstack-horizon15:41
rdopierae0ne: where should $mdi-icons be coming from?15:41
e0nerdopiera: AFAIR, it's from xstatic-mdi15:42
rdopierae0ne: ok, problem solved, we didn't install it for some reason15:49
e0nerdopiera: :)15:50
rdopieraactually no, I'm stupid and can't use a computer15:58
amotokinice. the problem solved :)15:58
rdopierait's actually not solved15:58
rdopierae0ne: how is that mdi thing included, I can't see it15:59
*** pbing19 has quit IRC15:59
e0nerdopiera: what do you mean?16:00
*** pbing19 has joined #openstack-horizon16:00
rdopierafor the variable to be used, it somehow has to include the file that defines it into the scss file?16:00
amotokirdopiera:  $HORIZON_REPO/static is a root of scss, so if you run collectstatic you will see SCSS files under static/horizon/lib/mdi/scss16:01
rdopieraamotoki: right, but they are not included?16:03
amotokirdopiera: where did you run pyscss?16:03
rdopieraah, they are in openstack_dashboard/themes/material/static/horizon/_icons.scss16:03
amotokiyou need to be $HORIZON_REPO/static created by collectstatic16:04
amotokis/be/be in/16:04
rdopieralooking into static/horizon/lib/mdi/scss I don't see mdi-icons defined anywhere in there16:05
*** Andreas681 has quit IRC16:06
amotoki$mdi-icons is defined in static/horizon/lib/mdi/_variables.scss16:06
amotoki@import "variables" imports _variables.scss16:06
rdopierait's not in  python-XStatic-mdi-1.4.57 that Horizon uses16:07
rdopierait was added in a later version16:08
amotokihmm.... upper-constraints.txt says we use XStatic-mdi===1.6.50.216:09
rdopierabut requirements.txt says 1.4.5716:11
amotokiah.... perhaps lower bound looks not maintained well :(16:12
amotokiI just checked 1.6.50.2 when I reviewed that patch.16:12
rdopieraanyways, that explains everything16:14
rdopierathank you for your help amotoki and e0ne16:14
rdopieraI wouldn't manage to figure it out alone16:14
amotokiyw16:16
*** pbing19 has quit IRC16:21
*** tmazur has quit IRC16:25
*** pbing19 has joined #openstack-horizon16:33
*** kevko has quit IRC16:34
*** kevko_ has quit IRC16:34
*** mkowalski[b] has quit IRC16:47
e0neamotoki: just updated https://github.com/Kronuz/pyScss/pull/394. it works on my env without libpcre-dev16:50
*** mkowalski[b] has joined #openstack-horizon16:54
*** rpittau is now known as rpittau|afk17:13
*** prince__nana has quit IRC17:20
*** kevko_ has joined #openstack-horizon17:26
*** kevko has joined #openstack-horizon17:26
*** e0ne has quit IRC17:36
*** e0ne has joined #openstack-horizon17:37
*** e0ne has quit IRC17:37
*** e0ne has joined #openstack-horizon17:38
*** ChanServ sets mode: +o e0ne17:38
*** e0ne has quit IRC17:39
*** btully has joined #openstack-horizon17:47
*** btully has quit IRC17:52
*** irclogbot_2 has quit IRC18:37
*** kevko has quit IRC18:55
*** kevko_ has quit IRC18:55
*** pbing19 has quit IRC18:58
*** irclogbot_2 has joined #openstack-horizon19:01
*** pbing19 has joined #openstack-horizon19:11
*** irclogbot_2 has quit IRC19:37
*** irclogbot_0 has joined #openstack-horizon19:40
*** irclogbot_0 has quit IRC19:42
*** irclogbot_3 has joined #openstack-horizon19:45
*** irclogbot_3 has quit IRC20:00
*** irclogbot_1 has joined #openstack-horizon20:03
*** irclogbot_1 has quit IRC20:12
*** irclogbot_1 has joined #openstack-horizon20:15
*** happyhemant has quit IRC20:15
*** irclogbot_1 has quit IRC20:16
*** irclogbot_2 has joined #openstack-horizon20:21
*** tosky has quit IRC20:40
*** tosky has joined #openstack-horizon20:54
*** btully has joined #openstack-horizon21:25
*** btully has quit IRC21:29
*** spatel has quit IRC21:52
*** Jeffrey4l has quit IRC22:27
*** Jeffrey4l has joined #openstack-horizon22:29
*** kevko has joined #openstack-horizon22:30
*** kevko_ has joined #openstack-horizon22:30
*** vishalmanchanda has quit IRC22:35
*** tkajinam has joined #openstack-horizon22:52
*** rcernin has joined #openstack-horizon22:56
*** btully has joined #openstack-horizon23:13
*** btully has quit IRC23:18
*** kevko has quit IRC23:29
*** kevko_ has quit IRC23:29
*** pbing19 has quit IRC23:51

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!