2024-11-15 06:41:02,576 - INFO - Domain Default found not creating
2024-11-15 06:41:02,734 - INFO - Project ctest-TestBasicPolicy-06297108 not found, creating it
2024-11-15 06:41:03,206 - INFO - Created Project:ctest-TestBasicPolicy-06297108, ID : 009e221d-37c9-43ea-8921-b4e231a02ce9
2024-11-15 06:41:04,669 - INFO - ================================================================================
2024-11-15 06:41:04,669 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-15 06:41:04,669 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-11-15 06:41:04,926 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.8': '0'}} with
2024-11-15 06:41:04,926 - INFO - Initial checks done. Running the testcase now
2024-11-15 06:41:04,926 - INFO -
2024-11-15 06:41:05,510 - DEBUG - Response for create_network : {'network': {'id': '3928bea1-886a-4346-bf84-4bbfa65f1d34', 'name': 'ctest-vn-11477755', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'project_id': '009e221d37c943ea8921b4e231a02ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-vn-11477755'], 'port_security_enabled': True, 'description': ''}}
2024-11-15 06:41:05,660 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce8e4b53-30f2-41a7-b781-8eba2b4d7e65', 'name': '', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'network_id': '3928bea1-886a-4346-bf84-4bbfa65f1d34', 'ip_version': 4, 'cidr': '41.87.48.192/26', 'allocation_pools': [{'start': '41.87.48.194', 'end': '41.87.48.254'}], 'gateway_ip': '41.87.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.87.48.194', 'tags': [], 'project_id': '009e221d37c943ea8921b4e231a02ce9'}}
2024-11-15 06:41:05,682 - INFO - Created VN ctest-vn-11477755
2024-11-15 06:41:05,738 - DEBUG - VN ctest-vn-11477755 UUID is 3928bea1-886a-4346-bf84-4bbfa65f1d34
2024-11-15 06:41:06,066 - DEBUG - Response for create_network : {'network': {'id': '708bedcc-5997-4d4b-b164-542ca70bd249', 'name': 'ctest-vn-89700627', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'project_id': '009e221d37c943ea8921b4e231a02ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-vn-89700627'], 'port_security_enabled': True, 'description': ''}}
2024-11-15 06:41:06,306 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d0f4233-25dc-4fce-ae80-93c32812d9e2', 'name': '', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'network_id': '708bedcc-5997-4d4b-b164-542ca70bd249', 'ip_version': 4, 'cidr': '30.49.216.192/26', 'allocation_pools': [{'start': '30.49.216.194', 'end': '30.49.216.254'}], 'gateway_ip': '30.49.216.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.49.216.194', 'tags': [], 'project_id': '009e221d37c943ea8921b4e231a02ce9'}}
2024-11-15 06:41:06,327 - INFO - Created VN ctest-vn-89700627
2024-11-15 06:41:06,386 - DEBUG - VN ctest-vn-89700627 UUID is 708bedcc-5997-4d4b-b164-542ca70bd249
2024-11-15 06:41:06,506 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-11-15 06:41:06,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3928bea1-886a-4346-bf84-4bbfa65f1d34', 'name': 'ctest-vn-11477755', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'project_id': '009e221d37c943ea8921b4e231a02ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce8e4b53-30f2-41a7-b781-8eba2b4d7e65'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-vn-11477755'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-policy-allow-all-88026187']], 'subnet_ipam': [{'subnet_cidr': '41.87.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-15 06:41:07,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '708bedcc-5997-4d4b-b164-542ca70bd249', 'name': 'ctest-vn-89700627', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'project_id': '009e221d37c943ea8921b4e231a02ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d0f4233-25dc-4fce-ae80-93c32812d9e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-vn-89700627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-policy-allow-all-88026187']], 'subnet_ipam': [{'subnet_cidr': '30.49.216.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-15 06:41:07,246 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-15 06:41:07,544 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-15 06:41:07,574 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb
2024-11-15 06:41:07,589 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9
2024-11-15 06:41:07,670 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34
2024-11-15 06:41:07,686 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34
2024-11-15 06:41:07,700 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5
2024-11-15 06:41:07,710 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5
2024-11-15 06:41:07,720 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7da6719d-6714-476f-a9de-f661550873cc
2024-11-15 06:41:07,728 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-15 06:41:07,728 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34
2024-11-15 06:41:07,742 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5
2024-11-15 06:41:07,764 - INFO - Verified VN network id 9 for VN 3928bea1-886a-4346-bf84-4bbfa65f1d34
2024-11-15 06:41:07,764 - INFO - Verifications in API Server for VN ctest-vn-11477755 passed
2024-11-15 06:41:07,764 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34
2024-11-15 06:41:07,777 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5
2024-11-15 06:41:07,787 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5
2024-11-15 06:41:07,796 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7da6719d-6714-476f-a9de-f661550873cc
2024-11-15 06:41:07,811 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06297108', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4118751460217996102', 'uuid-lslong': '13800238444672130356'}, 'enable': 'true', 'created': '2024-11-15T06:41:05', 'last-modified': '2024-11-15T06:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025497'}
2024-11-15 06:41:07,820 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-15 06:41:07,820 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11477755 passed
2024-11-15 06:41:07,820 - DEBUG - ====Verifying policy data for ctest-vn-11477755 in API_Server ======
2024-11-15 06:41:07,820 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-15 06:41:07,829 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb
2024-11-15 06:41:07,844 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9
2024-11-15 06:41:07,933 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34
2024-11-15 06:41:07,947 - DEBUG - ==>Verifying data for policy with id: 4ad007a5-f1dd-4140-a204-8dca9928ad71, fqn: ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-policy-allow-all-88026187']
2024-11-15 06:41:07,947 - INFO - VN ctest-vn-11477755 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-15 06:41:07,947 - DEBUG - Verifying the vn in opserver
2024-11-15 06:41:07,948 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755 virtual network link through opserver 10.0.0.41
2024-11-15 06:41:07,948 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-15 06:41:08,245 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-15 06:41:08,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755?flat'}
2024-11-15 06:41:08,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755 is found in opserver
2024-11-15 06:41:08,321 - DEBUG - Do not have enough data to verify VN in agent
2024-11-15 06:41:08,328 - DEBUG - VRF ids for VN ctest-vn-11477755: {}
2024-11-15 06:41:08,328 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-15 06:41:08,336 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb
2024-11-15 06:41:08,354 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9
2024-11-15 06:41:08,435 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249
2024-11-15 06:41:08,456 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249
2024-11-15 06:41:08,470 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17
2024-11-15 06:41:08,480 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17
2024-11-15 06:41:08,490 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/794cf8da-6c49-4283-835d-ec501c3f7994
2024-11-15 06:41:08,498 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-15 06:41:08,498 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249
2024-11-15 06:41:08,513 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17
2024-11-15 06:41:08,533 - INFO - Verified VN network id 10 for VN 708bedcc-5997-4d4b-b164-542ca70bd249
2024-11-15 06:41:08,533 - INFO - Verifications in API Server for VN ctest-vn-89700627 passed
2024-11-15 06:41:08,533 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249
2024-11-15 06:41:08,548 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17
2024-11-15 06:41:08,559 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17
2024-11-15 06:41:08,569 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/794cf8da-6c49-4283-835d-ec501c3f7994
2024-11-15 06:41:08,584 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06297108', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8109837015942909259', 'uuid-lslong': '12782434193142174281'}, 'enable': 'true', 'created': '2024-11-15T06:41:06', 'last-modified': '2024-11-15T06:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.547156'}
2024-11-15 06:41:08,592 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-15 06:41:08,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89700627 passed
2024-11-15 06:41:08,592 - DEBUG - ====Verifying policy data for ctest-vn-89700627 in API_Server ======
2024-11-15 06:41:08,592 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-15 06:41:08,599 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb
2024-11-15 06:41:08,614 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9
2024-11-15 06:41:08,699 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249
2024-11-15 06:41:08,714 - DEBUG - ==>Verifying data for policy with id: 4ad007a5-f1dd-4140-a204-8dca9928ad71, fqn: ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-policy-allow-all-88026187']
2024-11-15 06:41:08,714 - INFO - VN ctest-vn-89700627 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-15 06:41:08,714 - DEBUG - Verifying the vn in opserver
2024-11-15 06:41:08,714 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627 virtual network link through opserver 10.0.0.41
2024-11-15 06:41:08,714 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-15 06:41:08,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627?flat'}
2024-11-15 06:41:08,727 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627 is found in opserver
2024-11-15 06:41:08,740 - DEBUG - Do not have enough data to verify VN in agent
2024-11-15 06:41:08,747 - DEBUG - VRF ids for VN ctest-vn-89700627: {}
2024-11-15 06:41:08,812 - DEBUG - Services list from nova: [