diff --git a/app/models/activation_key.rb b/app/models/activation_key.rb
index <HASH>..<HASH> 100644
--- a/app/models/activation_key.rb
+++ b/app/models/activation_key.rb
@@ -33,11 +33,16 @@ class ActivationKey < ActiveRecord::Base
   validates :description, :katello_description_format => true
   validates :environment, :presence => true
   validate :environment_exists
+  validate :environment_not_locker
 
   def environment_exists
     errors.add(:environment, _("id: #{environment_id} doesn't exist ")) if environment.nil?
   end
 
+  def environment_not_locker
+    errors.add(:base, _("Cannot create activation keys in Locker environment ")) if environment and  environment.locker?
+  end
+
   # set's up system when registering with this activation key
   def apply_to_system(system)
     system.environment_id = self.environment_id if self.environment_id
<I> - validation in activation key model, can't be created for Locker env