*** tosky has quit IRC | 00:32 | |
openstackgerrit | Merged openstack/horizon master: Fix Horizon to work with the latest pyScss https://review.opendev.org/714274 | 01:01 |
---|---|---|
*** btully has joined #openstack-horizon | 01:28 | |
*** btully has quit IRC | 01:32 | |
*** spatel has joined #openstack-horizon | 01:56 | |
*** gyee has quit IRC | 02:21 | |
*** vishalmanchanda has joined #openstack-horizon | 05:03 | |
*** spatel has quit IRC | 05:04 | |
*** btully has joined #openstack-horizon | 05:05 | |
*** btully has quit IRC | 05:10 | |
*** dklyle has quit IRC | 05:50 | |
*** vesper11 has quit IRC | 07:16 | |
*** vesper has joined #openstack-horizon | 07:16 | |
*** e0ne has joined #openstack-horizon | 07:56 | |
*** ChanServ sets mode: +o e0ne | 07:56 | |
*** kevko has joined #openstack-horizon | 08:14 | |
*** tkajinam has quit IRC | 08:19 | |
*** tosky has joined #openstack-horizon | 08:24 | |
*** rpittau|afk is now known as rpittau | 08:31 | |
*** pbing19 has joined #openstack-horizon | 08:58 | |
*** pbing19 has quit IRC | 09:19 | |
*** Andreas681 has joined #openstack-horizon | 09:33 | |
*** kevko_ has joined #openstack-horizon | 09:47 | |
*** pbing19 has joined #openstack-horizon | 09:48 | |
Andreas681 | Are 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 |
Andreas681 | Creating a new server to ensure that it's wiped is a bit unmanageable, to say the least.. | 10:01 |
Andreas681 | uninstalling the plugin, removing all files and restarting server doesn't help | 10:02 |
*** e0ne has quit IRC | 10:03 | |
*** e0ne has joined #openstack-horizon | 10:04 | |
*** ChanServ sets mode: +o e0ne | 10:04 | |
*** pbing19 has quit IRC | 10:08 | |
*** pbing19 has joined #openstack-horizon | 10:10 | |
*** rcernin has quit IRC | 10:17 | |
Andreas681 | `./clean.sh` and `./unstack.sh`doesn't solve the problem either | 10:21 |
*** btully has joined #openstack-horizon | 10:32 | |
e0ne | Andreas681: what actually cache do you mean? | 10:33 |
*** pbing19 has quit IRC | 10:33 | |
Andreas681 | I'm not really sure. Somehow I can't make changes to the horizon panel because it loads from old data | 10:34 |
Andreas681 | I'm gonna try a hard reboot, and se if it updates | 10:36 |
*** btully has quit IRC | 10:36 | |
Andreas681 | Ok, so `sudo reboot` will apply the changes, but this is a little bit tedious :( | 10:38 |
Andreas681 | Is there a easier way to do it? `sudo service apache2 restart` doesn't do the trick | 10:38 |
*** pbing19 has joined #openstack-horizon | 10:40 | |
*** Andreas681 has quit IRC | 11:13 | |
kklimonda | is 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-horizon | 11:20 | |
e0ne | Andreas681: horizon uses memcache too. did you try to restart it? | 11:21 |
e0ne | kklimonda: in theory only. we don't test such setup | 11:22 |
Andreas681 | e0ne How do I restart memcache? | 11:23 |
e0ne | Andreas681: sudo systemctl restart memcached | 11:24 |
kklimonda | e0ne: 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 | |
e0ne | Andreas681: btw, what actually data is not refreshed after apache restart? | 11:24 |
e0ne | kklimonda: https://docs.openstack.org/horizon/latest/contributor/policy.html#back-end-service-support | 11:26 |
Andreas681 | e0ne I'm just trying to change a header in `/horizon/static/dashboard/myplugin/myplugin/panel.html` | 11:27 |
kklimonda | e0ne: thanks, that seems to be clear enough | 11:27 |
openstackgerrit | Georgina Shippey proposed openstack/horizon stable/train: Forwards LOGOUT_URL to templates. https://review.opendev.org/714920 | 11:29 |
Andreas681 | e0ne ok `sudo systemctl restart memcached` seems to do the trick! Thanks | 11:39 |
*** tosky_ is now known as tosky | 11:40 | |
e0ne | :) | 11:41 |
*** rpittau is now known as rpittau|bbl | 11:42 | |
amotoki | e0ne: 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-horizon | 11:53 | |
e0ne | amotoki: :) | 11:58 |
*** spatel has quit IRC | 11:58 | |
e0ne | amotoki: I have to add a release note and backport it to stable | 11:58 |
amotoki | e0ne: I have one thing I wonder why? | 12:01 |
amotoki | e0ne: looking at pyscss git log, libpcre-dev was used from pyscss 1.3.4 and nothing looks unchanged. | 12:01 |
amotoki | e0ne: I wonder why libpcre3-dev is needed to add when we use pyscss 1.3.6 (or pyscss2) | 12:02 |
amotoki | e0ne: do you have any idea on this? | 12:02 |
e0ne | amotoki: I'm not sure.. looks like it depends on a setuptools fix. maybe for an older pyscss it didn't compile excension | 12:03 |
*** kevko_ has quit IRC | 12:37 | |
*** kevko has quit IRC | 12:37 | |
*** kevko_ has joined #openstack-horizon | 12:38 | |
*** kevko has joined #openstack-horizon | 12:38 | |
openstackgerrit | Ivan Kolodyazhny proposed openstack/horizon master: Add a release note about upgrading pyScss to v1.3.6 https://review.opendev.org/714933 | 12:47 |
*** spatel has joined #openstack-horizon | 12:59 | |
amotoki | e0ne: you're right. setup.py change to follow-up setuptools 46 now makes the C extension mandatory. | 12:59 |
amotoki | e0ne: I have a concern that it means we need to add libpcre3-dev to bindep.txt to all horizon plugins | 13:00 |
e0ne | hm... | 13:00 |
amotoki | e0ne: 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 rpittau | 13:00 | |
e0ne | I'm ok to have this in a stable branches | 13:01 |
e0ne | but I don't like an idea to update every plugin to add a bindep | 13:01 |
kevko | hi guys, will you fix issue when pyscss is not installable via pip (review py37 job for example) because can't be compiled ? | 13:15 |
kevko | example : https://19862c796f0176e05bae-03c0af7271380f8d13c3735dacc9c317.ssl.cf2.rackcdn.com/709208/2/check/openstack-tox-py37/23fbb36/job-output.txt | 13:18 |
*** pbing19 has quit IRC | 13:18 | |
Nizars | Hi, we are developing a plugin for Horizon to mange role access based policies. | 13:57 |
Nizars | We have created a template panel and a backend in python and a front end using angularjs static files. | 13:57 |
Nizars | The 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 |
Nizars | 1. 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 IRC | 13:57 | |
*** Nizars has joined #openstack-horizon | 13:57 | |
e0ne | kevko: hi. new pyscss requires libpcre3-dev to be installed. we're discussing how we want to fix it for plugins too | 13: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 |
Nizars | 14:57 1C. Check if static files already exist in the static/dashboard/policy, if they are found it will remove them. | 13:57 |
Nizars | 14: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 |
Nizars | 14: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 |
Nizars | 14: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 |
Nizars | 2. 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 |
Nizars | 3. 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 |
Nizars | 4. 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 |
Nizars | At this point the Horizon dashboard is reloaded in the browser with bypassing the browser cache by pressing the keys: ctrl + F5. | 13:59 |
Nizars | My questions are: | 14:00 |
Nizars | Q1. 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 |
Nizars | Q2. 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 that | 14:00 |
Nizars | Horizon doesn't use any cached files from previous plugin installations that differ? | 14:00 |
Nizars | Q3. 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 files | 14:00 |
Nizars | when 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 |
Nizars | Q4. 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 |
Nizars | The code of the install.bash script can be found here: https://github.com/nizos/horizon-policies-plugin/blob/master/policy-ui/install.bash | 14:01 |
Nizars | The code for the plugin itself can be found here: https://github.com/nizos/horizon-policies-plugin | 14:01 |
Nizars | Sorry for the wall of text and thank you for looking at this. Any and all feedback and tips are really appreciated. :) | 14:01 |
Nizars | https://www.irccloud.com/pastebin/RYLIM10X/Horizon%20Plugin%20Install%20question | 14:05 |
*** happyhemant has joined #openstack-horizon | 14:06 | |
e0ne | amotoki: https://github.com/Kronuz/pyScss/issues/393 this one should make c extension optional again. | 14:25 |
e0ne | amotoki: so we'll need just to bump requirements when it'll be merged and released | 14:25 |
*** tmazur has joined #openstack-horizon | 14:29 | |
*** dklyle has joined #openstack-horizon | 14:52 | |
*** ChanServ sets mode: +o dklyle | 14:52 | |
amotoki | e0ne: I'd like to test it after the meeting | 15:02 |
e0ne | amotoki: it would be awesome! | 15:03 |
amotoki | e0ne: meeting time :) | 15:03 |
amotoki | https://github.com/Kronuz/pyScss/pull/394 | 15:14 |
amotoki | I will test it w/ and w/o libprec3-dev after the meeting | 15:15 |
amotoki | otherwise, all horizon plugins need to add libprec3-dev to their bindep.txt | 15:15 |
amotoki | it is the thing we would like to avoid. | 15:15 |
amotoki | that's all about the master branch. | 15:16 |
amotoki | anything other on the master branch? | 15:16 |
amotoki | we still have the issue in stable branches | 15:17 |
amotoki | the current plan is to use pyscss 1.3.6 (new version) in stable branches | 15:17 |
e0ne | amotoki: wrong channel? | 15:17 |
amotoki | h....... | 15:17 |
amotoki | aga..... | 15:18 |
rdopiera | e0ne: this is the error: https://paste.centos.org/view/d1b671eb | 15:26 |
e0ne | rdopiera: could you please check pyScss version? | 15:27 |
rdopiera | e0ne: it was 1.3.5, so we tried to update to 1.3.6 but it didn't help | 15:32 |
*** gyee has joined #openstack-horizon | 15:40 | |
*** pbing19 has joined #openstack-horizon | 15:41 | |
rdopiera | e0ne: where should $mdi-icons be coming from? | 15:41 |
e0ne | rdopiera: AFAIR, it's from xstatic-mdi | 15:42 |
rdopiera | e0ne: ok, problem solved, we didn't install it for some reason | 15:49 |
e0ne | rdopiera: :) | 15:50 |
rdopiera | actually no, I'm stupid and can't use a computer | 15:58 |
amotoki | nice. the problem solved :) | 15:58 |
rdopiera | it's actually not solved | 15:58 |
rdopiera | e0ne: how is that mdi thing included, I can't see it | 15:59 |
*** pbing19 has quit IRC | 15:59 | |
e0ne | rdopiera: what do you mean? | 16:00 |
*** pbing19 has joined #openstack-horizon | 16:00 | |
rdopiera | for the variable to be used, it somehow has to include the file that defines it into the scss file? | 16:00 |
amotoki | rdopiera: $HORIZON_REPO/static is a root of scss, so if you run collectstatic you will see SCSS files under static/horizon/lib/mdi/scss | 16:01 |
rdopiera | amotoki: right, but they are not included? | 16:03 |
amotoki | rdopiera: where did you run pyscss? | 16:03 |
rdopiera | ah, they are in openstack_dashboard/themes/material/static/horizon/_icons.scss | 16:03 |
amotoki | you need to be $HORIZON_REPO/static created by collectstatic | 16:04 |
amotoki | s/be/be in/ | 16:04 |
rdopiera | looking into static/horizon/lib/mdi/scss I don't see mdi-icons defined anywhere in there | 16:05 |
*** Andreas681 has quit IRC | 16:06 | |
amotoki | $mdi-icons is defined in static/horizon/lib/mdi/_variables.scss | 16:06 |
amotoki | @import "variables" imports _variables.scss | 16:06 |
rdopiera | it's not in python-XStatic-mdi-1.4.57 that Horizon uses | 16:07 |
rdopiera | it was added in a later version | 16:08 |
amotoki | hmm.... upper-constraints.txt says we use XStatic-mdi===1.6.50.2 | 16:09 |
rdopiera | but requirements.txt says 1.4.57 | 16:11 |
amotoki | ah.... perhaps lower bound looks not maintained well :( | 16:12 |
amotoki | I just checked 1.6.50.2 when I reviewed that patch. | 16:12 |
rdopiera | anyways, that explains everything | 16:14 |
rdopiera | thank you for your help amotoki and e0ne | 16:14 |
rdopiera | I wouldn't manage to figure it out alone | 16:14 |
amotoki | yw | 16:16 |
*** pbing19 has quit IRC | 16:21 | |
*** tmazur has quit IRC | 16:25 | |
*** pbing19 has joined #openstack-horizon | 16:33 | |
*** kevko has quit IRC | 16:34 | |
*** kevko_ has quit IRC | 16:34 | |
*** mkowalski[b] has quit IRC | 16:47 | |
e0ne | amotoki: just updated https://github.com/Kronuz/pyScss/pull/394. it works on my env without libpcre-dev | 16:50 |
*** mkowalski[b] has joined #openstack-horizon | 16:54 | |
*** rpittau is now known as rpittau|afk | 17:13 | |
*** prince__nana has quit IRC | 17:20 | |
*** kevko_ has joined #openstack-horizon | 17:26 | |
*** kevko has joined #openstack-horizon | 17:26 | |
*** e0ne has quit IRC | 17:36 | |
*** e0ne has joined #openstack-horizon | 17:37 | |
*** e0ne has quit IRC | 17:37 | |
*** e0ne has joined #openstack-horizon | 17:38 | |
*** ChanServ sets mode: +o e0ne | 17:38 | |
*** e0ne has quit IRC | 17:39 | |
*** btully has joined #openstack-horizon | 17:47 | |
*** btully has quit IRC | 17:52 | |
*** irclogbot_2 has quit IRC | 18:37 | |
*** kevko has quit IRC | 18:55 | |
*** kevko_ has quit IRC | 18:55 | |
*** pbing19 has quit IRC | 18:58 | |
*** irclogbot_2 has joined #openstack-horizon | 19:01 | |
*** pbing19 has joined #openstack-horizon | 19:11 | |
*** irclogbot_2 has quit IRC | 19:37 | |
*** irclogbot_0 has joined #openstack-horizon | 19:40 | |
*** irclogbot_0 has quit IRC | 19:42 | |
*** irclogbot_3 has joined #openstack-horizon | 19:45 | |
*** irclogbot_3 has quit IRC | 20:00 | |
*** irclogbot_1 has joined #openstack-horizon | 20:03 | |
*** irclogbot_1 has quit IRC | 20:12 | |
*** irclogbot_1 has joined #openstack-horizon | 20:15 | |
*** happyhemant has quit IRC | 20:15 | |
*** irclogbot_1 has quit IRC | 20:16 | |
*** irclogbot_2 has joined #openstack-horizon | 20:21 | |
*** tosky has quit IRC | 20:40 | |
*** tosky has joined #openstack-horizon | 20:54 | |
*** btully has joined #openstack-horizon | 21:25 | |
*** btully has quit IRC | 21:29 | |
*** spatel has quit IRC | 21:52 | |
*** Jeffrey4l has quit IRC | 22:27 | |
*** Jeffrey4l has joined #openstack-horizon | 22:29 | |
*** kevko has joined #openstack-horizon | 22:30 | |
*** kevko_ has joined #openstack-horizon | 22:30 | |
*** vishalmanchanda has quit IRC | 22:35 | |
*** tkajinam has joined #openstack-horizon | 22:52 | |
*** rcernin has joined #openstack-horizon | 22:56 | |
*** btully has joined #openstack-horizon | 23:13 | |
*** btully has quit IRC | 23:18 | |
*** kevko has quit IRC | 23:29 | |
*** kevko_ has quit IRC | 23:29 | |
*** pbing19 has quit IRC | 23:51 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!