Cloud Resource Management Using Constraints Acquisition and Planning