2024-08-21 20:26:01,933 - INFO - Domain Default found not creating
2024-08-21 20:26:02,129 - INFO - Project ctest-TestBasicPolicy-31559535 not found, creating it
2024-08-21 20:26:02,648 - INFO - Created Project:ctest-TestBasicPolicy-31559535, ID : 46d30094-b5a6-4892-ac8e-d825b4e8d5b1
2024-08-21 20:26:04,364 - INFO - ================================================================================
2024-08-21 20:26:04,364 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 20:26:04,364 - 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-21 20:26:04,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.17': '0'}} with
2024-08-21 20:26:04,646 - INFO - Initial checks done. Running the testcase now
2024-08-21 20:26:04,646 - INFO -
2024-08-21 20:26:05,318 - DEBUG - Response for create_network : {'network': {'id': '2fff6885-6265-4fe5-8fe6-5c5de04a97b1', 'name': 'ctest-vn-79936396', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-vn-79936396'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 20:26:05,513 - DEBUG - Response for create_subnet : {'subnet': {'id': '44de72f0-4b38-46db-a3e6-500877c8465d', 'name': '', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'network_id': '2fff6885-6265-4fe5-8fe6-5c5de04a97b1', 'ip_version': 4, 'cidr': '183.173.206.0/26', 'allocation_pools': [{'start': '183.173.206.2', 'end': '183.173.206.62'}], 'gateway_ip': '183.173.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.173.206.2', 'tags': [], 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1'}}
2024-08-21 20:26:05,538 - INFO - Created VN ctest-vn-79936396
2024-08-21 20:26:05,593 - DEBUG - VN ctest-vn-79936396 UUID is 2fff6885-6265-4fe5-8fe6-5c5de04a97b1
2024-08-21 20:26:05,939 - DEBUG - Response for create_network : {'network': {'id': '50ea403e-7347-450b-9203-c9ba13a845eb', 'name': 'ctest-vn-53011789', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-vn-53011789'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 20:26:06,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d046767-5ad3-435b-871c-d69a649dbbe1', 'name': '', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'network_id': '50ea403e-7347-450b-9203-c9ba13a845eb', 'ip_version': 4, 'cidr': '13.30.78.192/26', 'allocation_pools': [{'start': '13.30.78.194', 'end': '13.30.78.254'}], 'gateway_ip': '13.30.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.30.78.194', 'tags': [], 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1'}}
2024-08-21 20:26:06,233 - INFO - Created VN ctest-vn-53011789
2024-08-21 20:26:06,285 - DEBUG - VN ctest-vn-53011789 UUID is 50ea403e-7347-450b-9203-c9ba13a845eb
2024-08-21 20:26:06,408 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396, 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-31559535:ctest-vn-53011789, 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-21 20:26:06,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2fff6885-6265-4fe5-8fe6-5c5de04a97b1', 'name': 'ctest-vn-79936396', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44de72f0-4b38-46db-a3e6-500877c8465d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-vn-79936396'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-policy-allow-all-71973823']], 'subnet_ipam': [{'subnet_cidr': '183.173.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 20:26:07,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50ea403e-7347-450b-9203-c9ba13a845eb', 'name': 'ctest-vn-53011789', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d046767-5ad3-435b-871c-d69a649dbbe1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-vn-53011789'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-policy-allow-all-71973823']], 'subnet_ipam': [{'subnet_cidr': '13.30.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 20:26:07,233 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-21 20:26:07,541 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-21 20:26:07,581 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931
2024-08-21 20:26:07,601 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1
2024-08-21 20:26:07,690 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1
2024-08-21 20:26:07,704 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1
2024-08-21 20:26:07,716 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f
2024-08-21 20:26:07,726 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f
2024-08-21 20:26:07,735 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f7c3f381-4bbf-4312-81ca-b29758796aaf
2024-08-21 20:26:07,748 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 20:26:07,748 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1
2024-08-21 20:26:07,760 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f
2024-08-21 20:26:07,779 - INFO - Verified VN network id 8 for VN 2fff6885-6265-4fe5-8fe6-5c5de04a97b1
2024-08-21 20:26:07,779 - INFO - Verifications in API Server for VN ctest-vn-79936396 passed
2024-08-21 20:26:07,779 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1
2024-08-21 20:26:07,796 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f
2024-08-21 20:26:07,806 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f
2024-08-21 20:26:07,817 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f7c3f381-4bbf-4312-81ca-b29758796aaf
2024-08-21 20:26:07,835 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31559535', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3458597960934576101', 'uuid-lslong': '10369076750331844529'}, 'enable': 'true', 'created': '2024-08-21T20:26:05', 'last-modified': '2024-08-21T20:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.128499'}
2024-08-21 20:26:07,847 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 20:26:07,847 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79936396 passed
2024-08-21 20:26:07,847 - DEBUG - ====Verifying policy data for ctest-vn-79936396 in API_Server ======
2024-08-21 20:26:07,847 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-21 20:26:07,857 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931
2024-08-21 20:26:07,874 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1
2024-08-21 20:26:07,950 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1
2024-08-21 20:26:07,961 - DEBUG - ==>Verifying data for policy with id: c08a1c08-c8e7-4b2a-8446-55f514ca1910, fqn: ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-policy-allow-all-71973823']
2024-08-21 20:26:07,961 - INFO - VN ctest-vn-79936396 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 20:26:07,961 - DEBUG - Verifying the vn in opserver
2024-08-21 20:26:07,961 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396 virtual network link through opserver 10.0.0.24
2024-08-21 20:26:07,962 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-21 20:26:08,272 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-21 20:26:08,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396?flat'}
2024-08-21 20:26:08,355 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396 is found in opserver
2024-08-21 20:26:08,375 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 20:26:08,384 - DEBUG - VRF ids for VN ctest-vn-79936396: {}
2024-08-21 20:26:08,384 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-21 20:26:08,394 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931
2024-08-21 20:26:08,415 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1
2024-08-21 20:26:08,509 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb
2024-08-21 20:26:08,532 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb
2024-08-21 20:26:08,545 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496
2024-08-21 20:26:08,557 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496
2024-08-21 20:26:08,577 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/a2b7636e-ed82-439f-9a8c-7a7bf378ab8d
2024-08-21 20:26:08,588 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 20:26:08,588 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb
2024-08-21 20:26:08,609 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496
2024-08-21 20:26:08,631 - INFO - Verified VN network id 9 for VN 50ea403e-7347-450b-9203-c9ba13a845eb
2024-08-21 20:26:08,631 - INFO - Verifications in API Server for VN ctest-vn-53011789 passed
2024-08-21 20:26:08,631 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb
2024-08-21 20:26:08,644 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496
2024-08-21 20:26:08,655 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496
2024-08-21 20:26:08,665 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/a2b7636e-ed82-439f-9a8c-7a7bf378ab8d
2024-08-21 20:26:08,681 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31559535', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5830543304550728971', 'uuid-lslong': '10521474955498505707'}, 'enable': 'true', 'created': '2024-08-21T20:26:05', 'last-modified': '2024-08-21T20:26:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.666255'}
2024-08-21 20:26:08,690 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 20:26:08,690 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53011789 passed
2024-08-21 20:26:08,690 - DEBUG - ====Verifying policy data for ctest-vn-53011789 in API_Server ======
2024-08-21 20:26:08,690 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-21 20:26:08,701 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931
2024-08-21 20:26:08,716 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1
2024-08-21 20:26:08,808 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb
2024-08-21 20:26:08,824 - DEBUG - ==>Verifying data for policy with id: c08a1c08-c8e7-4b2a-8446-55f514ca1910, fqn: ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-policy-allow-all-71973823']
2024-08-21 20:26:08,824 - INFO - VN ctest-vn-53011789 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 20:26:08,825 - DEBUG - Verifying the vn in opserver
2024-08-21 20:26:08,825 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789 virtual network link through opserver 10.0.0.24
2024-08-21 20:26:08,825 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-21 20:26:08,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789?flat'}
2024-08-21 20:26:08,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789 is found in opserver
2024-08-21 20:26:08,865 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 20:26:08,873 - DEBUG - VRF ids for VN ctest-vn-53011789: {}
2024-08-21 20:26:08,956 - DEBUG - Services list from nova: [