2024-08-27 13:04:36,003 - INFO - Domain Default found not creating
2024-08-27 13:04:36,207 - INFO - Project ctest-TestBasicPolicy-76692309 not found, creating it
2024-08-27 13:04:36,726 - INFO - Created Project:ctest-TestBasicPolicy-76692309, ID : 7796c159-35d9-47a7-8045-48f3855651be
2024-08-27 13:04:38,499 - INFO - ================================================================================
2024-08-27 13:04:38,499 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 13:04:38,499 - 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-08-27 13:04:38,769 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.18': '0'}} with
2024-08-27 13:04:38,769 - INFO - Initial checks done. Running the testcase now
2024-08-27 13:04:38,769 - INFO -
2024-08-27 13:04:39,404 - DEBUG - Response for create_network : {'network': {'id': 'a269d0f3-04cb-40a4-99d2-a9bea0f97143', 'name': 'ctest-vn-06183303', 'tenant_id': '7796c15935d947a7804548f3855651be', 'project_id': '7796c15935d947a7804548f3855651be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-vn-06183303'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 13:04:39,596 - DEBUG - Response for create_subnet : {'subnet': {'id': '65cee03b-534b-410f-822d-0c95f6297796', 'name': '', 'tenant_id': '7796c15935d947a7804548f3855651be', 'network_id': 'a269d0f3-04cb-40a4-99d2-a9bea0f97143', 'ip_version': 4, 'cidr': '165.14.230.0/26', 'allocation_pools': [{'start': '165.14.230.2', 'end': '165.14.230.62'}], 'gateway_ip': '165.14.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.14.230.2', 'tags': [], 'project_id': '7796c15935d947a7804548f3855651be'}}
2024-08-27 13:04:39,622 - INFO - Created VN ctest-vn-06183303
2024-08-27 13:04:39,675 - DEBUG - VN ctest-vn-06183303 UUID is a269d0f3-04cb-40a4-99d2-a9bea0f97143
2024-08-27 13:04:40,025 - DEBUG - Response for create_network : {'network': {'id': 'b4f09878-be98-4746-aa21-aa02f81798fb', 'name': 'ctest-vn-42259255', 'tenant_id': '7796c15935d947a7804548f3855651be', 'project_id': '7796c15935d947a7804548f3855651be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-vn-42259255'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 13:04:40,188 - DEBUG - Response for create_subnet : {'subnet': {'id': '49c10725-5c55-4df6-ae2c-34c4226a3f36', 'name': '', 'tenant_id': '7796c15935d947a7804548f3855651be', 'network_id': 'b4f09878-be98-4746-aa21-aa02f81798fb', 'ip_version': 4, 'cidr': '52.123.61.0/26', 'allocation_pools': [{'start': '52.123.61.2', 'end': '52.123.61.62'}], 'gateway_ip': '52.123.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.123.61.2', 'tags': [], 'project_id': '7796c15935d947a7804548f3855651be'}}
2024-08-27 13:04:40,209 - INFO - Created VN ctest-vn-42259255
2024-08-27 13:04:40,259 - DEBUG - VN ctest-vn-42259255 UUID is b4f09878-be98-4746-aa21-aa02f81798fb
2024-08-27 13:04:40,383 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303, 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-76692309:ctest-vn-42259255, 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-08-27 13:04:40,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a269d0f3-04cb-40a4-99d2-a9bea0f97143', 'name': 'ctest-vn-06183303', 'tenant_id': '7796c15935d947a7804548f3855651be', 'project_id': '7796c15935d947a7804548f3855651be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65cee03b-534b-410f-822d-0c95f6297796'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-vn-06183303'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-policy-allow-all-78811369']], 'subnet_ipam': [{'subnet_cidr': '165.14.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 13:04:41,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4f09878-be98-4746-aa21-aa02f81798fb', 'name': 'ctest-vn-42259255', 'tenant_id': '7796c15935d947a7804548f3855651be', 'project_id': '7796c15935d947a7804548f3855651be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49c10725-5c55-4df6-ae2c-34c4226a3f36'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-vn-42259255'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-policy-allow-all-78811369']], 'subnet_ipam': [{'subnet_cidr': '52.123.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 13:04:41,163 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 13:04:41,508 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 13:04:41,543 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45
2024-08-27 13:04:41,559 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be
2024-08-27 13:04:41,637 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143
2024-08-27 13:04:41,648 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143
2024-08-27 13:04:41,657 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36
2024-08-27 13:04:41,665 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36
2024-08-27 13:04:41,672 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/f38f1a97-893c-4d0a-a941-a85d82cf3fe1
2024-08-27 13:04:41,681 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 13:04:41,682 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143
2024-08-27 13:04:41,691 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36
2024-08-27 13:04:41,706 - INFO - Verified VN network id 8 for VN a269d0f3-04cb-40a4-99d2-a9bea0f97143
2024-08-27 13:04:41,706 - INFO - Verifications in API Server for VN ctest-vn-06183303 passed
2024-08-27 13:04:41,706 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143
2024-08-27 13:04:41,716 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36
2024-08-27 13:04:41,724 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36
2024-08-27 13:04:41,731 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/f38f1a97-893c-4d0a-a941-a85d82cf3fe1
2024-08-27 13:04:41,746 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76692309', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11703114848875004068', 'uuid-lslong': '11084108269121794371'}, 'enable': 'true', 'created': '2024-08-27T13:04:39', 'last-modified': '2024-08-27T13:04:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076392'}
2024-08-27 13:04:41,756 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 13:04:41,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06183303 passed
2024-08-27 13:04:41,757 - DEBUG - ====Verifying policy data for ctest-vn-06183303 in API_Server ======
2024-08-27 13:04:41,757 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 13:04:41,765 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45
2024-08-27 13:04:41,779 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be
2024-08-27 13:04:41,855 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143
2024-08-27 13:04:41,866 - DEBUG - ==>Verifying data for policy with id: 7afe02ba-e35a-482d-b806-7839aa6cc746, fqn: ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-policy-allow-all-78811369']
2024-08-27 13:04:41,866 - INFO - VN ctest-vn-06183303 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 13:04:41,866 - DEBUG - Verifying the vn in opserver
2024-08-27 13:04:41,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303 virtual network link through opserver 10.0.0.45
2024-08-27 13:04:41,866 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 13:04:42,210 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 13:04:42,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303?flat'}
2024-08-27 13:04:42,287 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303 is found in opserver
2024-08-27 13:04:42,300 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 13:04:42,306 - DEBUG - VRF ids for VN ctest-vn-06183303: {}
2024-08-27 13:04:42,306 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 13:04:42,313 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45
2024-08-27 13:04:42,336 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be
2024-08-27 13:04:42,420 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb
2024-08-27 13:04:42,432 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb
2024-08-27 13:04:42,443 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8
2024-08-27 13:04:42,452 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8
2024-08-27 13:04:42,460 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/7b0a7402-251c-4e13-a611-ac6bdb77838e
2024-08-27 13:04:42,467 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 13:04:42,467 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb
2024-08-27 13:04:42,476 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8
2024-08-27 13:04:42,489 - INFO - Verified VN network id 9 for VN b4f09878-be98-4746-aa21-aa02f81798fb
2024-08-27 13:04:42,490 - INFO - Verifications in API Server for VN ctest-vn-42259255 passed
2024-08-27 13:04:42,490 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb
2024-08-27 13:04:42,499 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8
2024-08-27 13:04:42,509 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8
2024-08-27 13:04:42,519 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/7b0a7402-251c-4e13-a611-ac6bdb77838e
2024-08-27 13:04:42,534 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76692309', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13038088565598734150', 'uuid-lslong': '12259266590408153339'}, 'enable': 'true', 'created': '2024-08-27T13:04:39', 'last-modified': '2024-08-27T13:04:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.601961'}
2024-08-27 13:04:42,541 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 13:04:42,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42259255 passed
2024-08-27 13:04:42,542 - DEBUG - ====Verifying policy data for ctest-vn-42259255 in API_Server ======
2024-08-27 13:04:42,542 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 13:04:42,548 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45
2024-08-27 13:04:42,561 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be
2024-08-27 13:04:42,637 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb
2024-08-27 13:04:42,647 - DEBUG - ==>Verifying data for policy with id: 7afe02ba-e35a-482d-b806-7839aa6cc746, fqn: ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-policy-allow-all-78811369']
2024-08-27 13:04:42,647 - INFO - VN ctest-vn-42259255 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 13:04:42,647 - DEBUG - Verifying the vn in opserver
2024-08-27 13:04:42,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255 virtual network link through opserver 10.0.0.45
2024-08-27 13:04:42,647 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 13:04:42,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255?flat'}
2024-08-27 13:04:42,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255 is found in opserver
2024-08-27 13:04:42,677 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 13:04:42,684 - DEBUG - VRF ids for VN ctest-vn-42259255: {}
2024-08-27 13:04:42,757 - DEBUG - Services list from nova: [