{bug} - UI issues w/ Scalr 5.1.0 in Farm Builder when editing existing Farm

26 views
Skip to first unread message

karl.qu...@ticketfly.com

unread,
Feb 3, 2015, 2:10:19 PM2/3/15
to scalr-...@googlegroups.com
Hi.

I'll try to keep this as canonical as I can.  When I create a farm for the first time, everything works fine.  100% of the UI is as i'd expect it to be.  Until I save a farm and attempt to edit it later.

When attempting to edit an existing farm, two things happen:

1. The UI for a given role is "missing" fields.  See the attached screenshot for highlights showing which elements are in-correctly filled out. The behavior of theses fields is as if they're not 100% set up by the javascript... which brings me to the second issue




2. See the second attached screenshot for the specific JS console error and the network waterfall graph and, the JSON that comes back from the /platforms/xGetInstanceTypes call.





If I edit the farm, and immediately add a new role to the farm *BEFORE* I dig into any of the existing roles, then the newly added role's UI will function 100% as expected. Everything works and functions as it should... until I attempt to edit any of the existing roles in the farm; they sill have various UI issues like those shown in the screenshots for point #1 above.



I can re-produce this problem on all modern web browsers (Chrome, FF, Safari.. all on OSX and Android).  The cloud in question is AWS.



System information and scalr release information:


root@54:/opt/scalr# whoami
root
root@54
:/opt/scalr# uname -r
3.13.0-44-generic
root@54
:/opt/scalr# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
root@54
:/opt/scalr# pwd
/opt/scalr
root@54
:/opt/scalr# ls -l
total
16
lrwxrwxrwx
1 root scalr   60 Feb  2 22:52 current -> /opt/scalr/releases/cee9a5dfc950daa018c685968a1b88bbb4dfb772
drwxr
-xr-x 3 root scalr 4096 Feb  2 22:52 releases
drwxr
-xr-x 3 root scalr 4096 Feb  2 22:52 shared
drwxr
-xr-x 6 root scalr 4096 Feb  2 23:02 venv
root@54
:/opt/scalr/current# git fetch origin master
From git://github.com/Scalr/scalr
 
* branch            master     -> FETCH_HEAD
root@54
:/opt/scalr/current# git status
On branch deploy
nothing to commit
, working directory clean




Please let me know if there's anything else that I need to provide to help you figure out this issue.  Thanks!

Thomas Orozco

unread,
Feb 5, 2015, 4:41:53 AM2/5/15
to scalr-...@googlegroups.com
Hi there,

The error actually seems to have to do with your Farm Roles, rather than your Instance Types.


This leads me to think that one of your Farm Roles has no Image (you can lookup the definition of `get:` a few lines above).

Could you:

+ Ensure that you've ran all migrations on this instance:

cd /opt/scalr/current/app/bin && php upgrade.php

+  Provide a snapshot of the network request to /farms/{farmId}/edit, wit the following expanded: http://note.io/1DBaqIl

Thanks!

karl.qu...@ticketfly.com

unread,
Feb 5, 2015, 1:56:25 PM2/5/15
to scalr-...@googlegroups.com
Thanks for the moderation whitelist!  I am grateful.

Sure thing!

I have not yet been able to create my own roles form my own images; i'm using 100% scalr's ubuntu image (base64-12.04) in AWS US-WEST-2 region.


I should have mentioned that I've already tried to update the installation after using the installer-ng script.

root@54:/opt/scalr/current/app/bin# whoami
root
root@54:/opt/scalr/current/app/bin# pwd
/opt/scalr/current/app/bin
root@54:/opt/scalr/current/app/bin# php upgrade.php
24:48 - Scalr is up-to-date
root@54:/opt/scalr/current/app/bin#




And here's the attached console dump as a screenshot.  Very interesting results!




So that's interesting!  There's no image details, but the rest of the information is there... the database is 1/2 populated?


-K

Thomas Orozco

unread,
Feb 5, 2015, 2:02:36 PM2/5/15
to scalr-...@googlegroups.com
Hey Karl​,

Can you please check the corresponding Role's Images Tab / send a screenshot?

Thanks,

Karl Quinsland

unread,
Feb 5, 2015, 2:09:49 PM2/5/15
to scalr-...@googlegroups.com
Inline image 1

Oh wow! Thanks for the suggestion.  Here's something quite interesting:

I get a "Cannot proceed with your request. Please try again later." message when I try to take a look at the specific role in question.

Attached is a screenshot from my console and the text from the specific error:


Fatal error: Call to a member function getSoftwareAsString() on a non-object in/opt/scalr/releases/cee9a5dfc950daa018c685968a1b88bbb4dfb772/app/src/Scalr/UI/Controller/Roles.php on line 775

--
You received this message because you are subscribed to a topic in the Google Groups "scalr-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scalr-discuss/i1nJ2LkijpQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scalr-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Orozco

unread,
Feb 5, 2015, 2:20:54 PM2/5/15
to scalr-...@googlegroups.com
Hey Karl,

I think we're nearing the limits of my ability to debug this without being able to see your setup. I'll loop some folks in to check whether this is a known issue (maybe something that has been fixed in EE by now?).

In the meantime, would you mind trying creating a new Role, adding Images to it, and seeing whether that one works?

Cheers, 

-- Thomas | Product Manager @ Scalr | tho...@scalr.com | www.scalr.com | blog.scalr.com

--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalr-discus...@googlegroups.com.

Karl Quinsland

unread,
Feb 5, 2015, 3:19:20 PM2/5/15
to scalr-...@googlegroups.com
Thanks for all your help so far, Thomas. 

I'l post back w/ an update as soon as i'm able to.  There's a bit on my plate right now keeping me from spinning up my own image for import.

-K

Thomas Orozco

unread,
Feb 5, 2015, 3:20:44 PM2/5/15
to scalr-...@googlegroups.com
Karl,​

You don't need to create a new Image. Just use the "Register an Image", and use an Image ID that already exists (you might need to login as an admin and delete it if that results in a duplicate)

Cheers 

Karl Quinsland

unread,
Feb 5, 2015, 5:22:08 PM2/5/15
to scalr-...@googlegroups.com
Thomas.  Sorry, which import method are you referring to?  (see attached)
Inline image 1


--

Thomas Orozco

unread,
Feb 5, 2015, 5:45:13 PM2/5/15
to scalr-...@googlegroups.com
Hey Karl​,

I was actually referring to creating a new Image, not Role. However, you could go ahead with creating a Role using an existing Image (that's the leftmost option), and then trying to use that one in a Farm.

Let me know how that goes

Cheers,

Karl Quinsland

unread,
Feb 5, 2015, 5:53:02 PM2/5/15
to scalr-...@googlegroups.com
Ah, my mis-understanding.   I forgot that i can do this from the scalr menu.  What's the easiest way to view the AMI-ID's for scalr's provided images?  I'll need that to import the scalr images, otherwise it'll take ke a bit more time to get the scalr-agent installed on an AMI of my own.

-K

--

Thomas Orozco

unread,
Feb 5, 2015, 6:00:28 PM2/5/15
to scalr-...@googlegroups.com
If the Images are already in your Scalr account (that seemed to be the case in the screenshot), you can use them directly without re-importing them ; )

Cheers,

-- Thomas | Product Manager @ Scalr | tho...@scalr.com | www.scalr.com | blog.scalr.com

--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalr-discus...@googlegroups.com.

Karl Quinsland

unread,
Feb 5, 2015, 6:03:06 PM2/5/15
to scalr-...@googlegroups.com
Right, but how can i see the AMI-ID's?  When i click on any image for details, i get the error regarding the "getSoftwareAsString()" call.

karl.qu...@ticketfly.com

unread,
Feb 5, 2015, 6:04:19 PM2/5/15
to scalr-...@googlegroups.com
My image library shows nothing... is that supposed to be the case (default behavior is show images that are things i've imported?)


Thomas Orozco

unread,
Feb 5, 2015, 6:06:21 PM2/5/15
to scalr-...@googlegroups.com
That's indeed strange. That list shouldn't be empty, and that might be the root cause of your problem (meaning you have plenty of Roles that don't have an Image backing them). That looks a lot like a migration gone wrong.

Here's a Public AMI ID for you to try: ami-5cca6f34. That image is in us-east-1, and it's an Ubuntu 14.04 with Chef installed on it.

--

Do you have anything currently running in that Scalr install?

Cheers, 

-- Thomas | Product Manager @ Scalr | tho...@scalr.com | www.scalr.com | blog.scalr.com

karl.qu...@ticketfly.com

unread,
Feb 5, 2015, 6:35:13 PM2/5/15
to scalr-...@googlegroups.com
Thanks for the AMI.  the VPC that i'm working out of has no subnets in us-east-1 and i cant easily add one.  I am currently trying to get the scalr-agent installed on an image that we use internally for a manual import of sorts.


no, i have nothing on the box.  Is it easier to just blow it away and start again?

Thomas Orozco

unread,
Feb 6, 2015, 3:12:08 AM2/6/15
to scalr-...@googlegroups.com
If you don't have anything on the box, it might indeed be simpler to just replace it with a new one. Plus, you'll be able to use the new installer, which should yield an install that's more stable and easier to deploy.

Cheers,

Thomas Orozco

unread,
Feb 6, 2015, 4:26:09 AM2/6/15
to scalr-...@googlegroups.com
Actually, hold off on that for a bit. ​We're looking into a possible bug and will let you know ASAP;

Cheers,

Thomas Orozco

unread,
Feb 6, 2015, 9:06:56 AM2/6/15
to scalr-...@googlegroups.com
Karl,

We've fixed a bug in the import process today. Can you retry syncing your shared roles and images? (rerun the php script)

Let me know if that works. If not, we might need to remove the old ones before we can re-run the process.

Cheers, 

karl.qu...@ticketfly.com

unread,
Feb 6, 2015, 1:26:33 PM2/6/15
to scalr-...@googlegroups.com
Boom!  Thanks, Thomas!  I'm glad y'all were able to quickly identify the issue.  I can confirm that the issue is solved and i no longer experience any awkward UI bugs.  Thanks!

/close the thread :).  Issue solved w/ user satisfaction!

Thomas Orozco

unread,
Feb 6, 2015, 1:43:13 PM2/6/15
to scalr-...@googlegroups.com
Thank the engineering team, not me ; )

Glad to hear that did it, though!

Cheers 
Reply all
Reply to author
Forward
0 new messages