create_frontend not populating the images on the monitoring page
The main frontend monitoring (index) page is broken.
It is referencing pictures in the images subdirectory, that does not exist.
My guess is that the create_frontend is not doing its job.
#1 Updated by Igor Sfiligoi almost 6 years ago
Here is an example page:
#6 Updated by HyunWoo Kim over 4 years ago
- % Done changed from 0 to 90
I identified the code of Frontend which shows how we make sure that the images are populated.
This only applies when we install GWMS manually.
RPM version includes the images in it.
I will just have to confirm my finding by manually installing Frontend and running create_frontend script.
It is also recommended by Parag that we should modify the code such that these images are installed always.
#8 Updated by Parag Mhashilkar about 4 years ago
- Assignee changed from Parag Mhashilkar to HyunWoo Kim
I am assuming you tested this to work with both rpm and tarball.
Code can be cleaned up further
- variable spd is not required - Remove
- commented code - Remove
- useMonitorIndexPage is not required if are unconditionally setting it to True - Remove
- Code inside "if usMonitorIndexPage:" will always be executed so just remove the if statement - shift the code indentation to get desired results
spd = self.params.data useMonitorIndexPage = True # if spd.has_key('frontend_monitor_index_page'): # useMonitorIndexPage = spd['frontend_monitor_index_page'] in ('True', 'true', '1') if useMonitorIndexPage: mfobj = cWDictFile.SimpleFile(params.src_dir + '/frontend', 'index.html') mfobj.load() self.monitor_htmls.append(mfobj) for imgfil in ('frontendGroupGraphsNow.small.png', 'frontendRRDBrowse.small.png', 'frontendRRDGroupMatix.small.png', 'frontendStatus.small.png'): mfobj = cWDictFile.SimpleFile(params.src_dir + '/frontend/images', imgfil) mfobj.load() self.monitor_htmls.append(mfobj)
#10 Updated by HyunWoo Kim about 4 years ago
- Status changed from Feedback to Resolved
- % Done changed from 90 to 100
I confirmed that this change now enables the tar-ball install to populate /var/www/html/frontend/master/monitor/frontend_Frontend-master-v1_0/ with the images.
I am closing this ticket.