Comment 2 for bug 1244766

Revision history for this message
John A Meinel (jameinel) wrote :

I do see this like in worker/uniter/uniter.go runHook():
apiAddrs, err := u.st.APIAddresses()

And in the current implementation APIAddresses goes all the way to the provider-state file to create an Environment, do an API lookup to get the Address. (Which is extra funny given that u.st is actually already an API connection).

But yes, every hook execution will trigger at *least* one EC2 API call. We should fix the Addresses code to just extract the addresses from state (see bug #1205371).