2024-09-16 02:18:04,170 - INFO - Domain Default found not creating
2024-09-16 02:18:04,349 - INFO - Project ctest-TestBasicPolicy-44059135 not found, creating it
2024-09-16 02:18:04,835 - INFO - Created Project:ctest-TestBasicPolicy-44059135, ID : 70790ced-15c8-436a-b5c5-acfa465b059d
2024-09-16 02:18:06,293 - INFO - ================================================================================
2024-09-16 02:18:06,293 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-16 02:18:06,293 - 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-09-16 02:18:06,550 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.18': '0'}} with
2024-09-16 02:18:06,551 - INFO - Initial checks done. Running the testcase now
2024-09-16 02:18:06,551 - INFO -
2024-09-16 02:18:07,119 - DEBUG - Response for create_network : {'network': {'id': 'b4529505-f027-4094-9a0e-9cf67655fe20', 'name': 'ctest-vn-62115427', 'tenant_id': '70790ced15c8436ab5c5acfa465b059d', 'project_id': '70790ced15c8436ab5c5acfa465b059d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44059135', 'ctest-vn-62115427'], 'port_security_enabled': True, 'description': ''}}
2024-09-16 02:18:07,341 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a06f0c8-7cb0-4475-970c-0d9a4f784249', 'name': '', 'tenant_id': '70790ced15c8436ab5c5acfa465b059d', 'network_id': 'b4529505-f027-4094-9a0e-9cf67655fe20', 'ip_version': 4, 'cidr': '81.213.163.64/26', 'allocation_pools': [{'start': '81.213.163.66', 'end': '81.213.163.126'}], 'gateway_ip': '81.213.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.213.163.66', 'tags': [], 'project_id': '70790ced15c8436ab5c5acfa465b059d'}}
2024-09-16 02:18:07,363 - INFO - Created VN ctest-vn-62115427
2024-09-16 02:18:07,422 - DEBUG - VN ctest-vn-62115427 UUID is b4529505-f027-4094-9a0e-9cf67655fe20
2024-09-16 02:18:07,720 - DEBUG - Response for create_network : {'network': {'id': 'f5fb66d5-1974-4921-852b-fd5887584224', 'name': 'ctest-vn-86079863', 'tenant_id': '70790ced15c8436ab5c5acfa465b059d', 'project_id': '70790ced15c8436ab5c5acfa465b059d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44059135', 'ctest-vn-86079863'], 'port_security_enabled': True, 'description': ''}}
2024-09-16 02:18:07,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '60fc6213-e490-43bd-bf2a-6f77b48bbf01', 'name': '', 'tenant_id': '70790ced15c8436ab5c5acfa465b059d', 'network_id': 'f5fb66d5-1974-4921-852b-fd5887584224', 'ip_version': 4, 'cidr': '26.187.201.64/26', 'allocation_pools': [{'start': '26.187.201.66', 'end': '26.187.201.126'}], 'gateway_ip': '26.187.201.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.187.201.66', 'tags': [], 'project_id': '70790ced15c8436ab5c5acfa465b059d'}}
2024-09-16 02:18:07,906 - INFO - Created VN ctest-vn-86079863
2024-09-16 02:18:07,962 - DEBUG - VN ctest-vn-86079863 UUID is f5fb66d5-1974-4921-852b-fd5887584224
2024-09-16 02:18:08,118 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-62115427, 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-44059135:ctest-vn-86079863, 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-09-16 02:18:08,428 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4529505-f027-4094-9a0e-9cf67655fe20', 'name': 'ctest-vn-62115427', 'tenant_id': '70790ced15c8436ab5c5acfa465b059d', 'project_id': '70790ced15c8436ab5c5acfa465b059d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a06f0c8-7cb0-4475-970c-0d9a4f784249'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44059135', 'ctest-vn-62115427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44059135', 'ctest-policy-allow-all-37407450']], 'subnet_ipam': [{'subnet_cidr': '81.213.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-16 02:18:08,674 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5fb66d5-1974-4921-852b-fd5887584224', 'name': 'ctest-vn-86079863', 'tenant_id': '70790ced15c8436ab5c5acfa465b059d', 'project_id': '70790ced15c8436ab5c5acfa465b059d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60fc6213-e490-43bd-bf2a-6f77b48bbf01'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44059135', 'ctest-vn-86079863'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44059135', 'ctest-policy-allow-all-37407450']], 'subnet_ipam': [{'subnet_cidr': '26.187.201.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-16 02:18:08,858 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-16 02:18:09,160 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-16 02:18:09,200 - DEBUG - Requesting: http://10.0.0.17:8082/domain/373645a6-40c1-41f7-af2f-e489b0f1b81f
2024-09-16 02:18:09,214 - DEBUG - Requesting: http://10.0.0.17:8082/project/70790ced-15c8-436a-b5c5-acfa465b059d
2024-09-16 02:18:09,293 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b4529505-f027-4094-9a0e-9cf67655fe20
2024-09-16 02:18:09,310 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b4529505-f027-4094-9a0e-9cf67655fe20
2024-09-16 02:18:09,323 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f8cab689-0148-4e26-b6eb-d7dcf5ea3c12
2024-09-16 02:18:09,332 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f8cab689-0148-4e26-b6eb-d7dcf5ea3c12
2024-09-16 02:18:09,341 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/67a31620-57fd-4629-b105-6a7c549bac09
2024-09-16 02:18:09,350 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-16 02:18:09,350 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b4529505-f027-4094-9a0e-9cf67655fe20
2024-09-16 02:18:09,362 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f8cab689-0148-4e26-b6eb-d7dcf5ea3c12
2024-09-16 02:18:09,380 - INFO - Verified VN network id 8 for VN b4529505-f027-4094-9a0e-9cf67655fe20
2024-09-16 02:18:09,381 - INFO - Verifications in API Server for VN ctest-vn-62115427 passed
2024-09-16 02:18:09,381 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b4529505-f027-4094-9a0e-9cf67655fe20
2024-09-16 02:18:09,393 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f8cab689-0148-4e26-b6eb-d7dcf5ea3c12
2024-09-16 02:18:09,401 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f8cab689-0148-4e26-b6eb-d7dcf5ea3c12
2024-09-16 02:18:09,410 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/67a31620-57fd-4629-b105-6a7c549bac09
2024-09-16 02:18:09,424 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-62115427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44059135', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12993611727653781652', 'uuid-lslong': '11100982713876086304'}, 'enable': 'true', 'created': '2024-09-16T02:18:07', 'last-modified': '2024-09-16T02:18:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021229'}
2024-09-16 02:18:09,431 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-16 02:18:09,431 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62115427 passed
2024-09-16 02:18:09,431 - DEBUG - ====Verifying policy data for ctest-vn-62115427 in API_Server ======
2024-09-16 02:18:09,431 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-16 02:18:09,438 - DEBUG - Requesting: http://10.0.0.17:8082/domain/373645a6-40c1-41f7-af2f-e489b0f1b81f
2024-09-16 02:18:09,452 - DEBUG - Requesting: http://10.0.0.17:8082/project/70790ced-15c8-436a-b5c5-acfa465b059d
2024-09-16 02:18:09,541 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b4529505-f027-4094-9a0e-9cf67655fe20
2024-09-16 02:18:09,560 - DEBUG - ==>Verifying data for policy with id: f2fa8f89-a4d6-4c2c-a830-8f024e56d14d, fqn: ['default-domain', 'ctest-TestBasicPolicy-44059135', 'ctest-policy-allow-all-37407450']
2024-09-16 02:18:09,560 - INFO - VN ctest-vn-62115427 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-16 02:18:09,560 - DEBUG - Verifying the vn in opserver
2024-09-16 02:18:09,560 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-62115427 virtual network link through opserver 10.0.0.17
2024-09-16 02:18:09,561 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-16 02:18:09,853 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-16 02:18:09,912 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-62115427', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-62115427?flat'}
2024-09-16 02:18:09,912 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-62115427 is found in opserver
2024-09-16 02:18:09,923 - DEBUG - Do not have enough data to verify VN in agent
2024-09-16 02:18:09,928 - DEBUG - VRF ids for VN ctest-vn-62115427: {}
2024-09-16 02:18:09,928 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-16 02:18:09,934 - DEBUG - Requesting: http://10.0.0.17:8082/domain/373645a6-40c1-41f7-af2f-e489b0f1b81f
2024-09-16 02:18:09,946 - DEBUG - Requesting: http://10.0.0.17:8082/project/70790ced-15c8-436a-b5c5-acfa465b059d
2024-09-16 02:18:10,024 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f5fb66d5-1974-4921-852b-fd5887584224
2024-09-16 02:18:10,040 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f5fb66d5-1974-4921-852b-fd5887584224
2024-09-16 02:18:10,055 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5c8a6115-262a-4907-abe9-90d68c458fb0
2024-09-16 02:18:10,064 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5c8a6115-262a-4907-abe9-90d68c458fb0
2024-09-16 02:18:10,073 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/750367ae-5fe8-4ce3-997d-bb5902a68e67
2024-09-16 02:18:10,080 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-16 02:18:10,080 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f5fb66d5-1974-4921-852b-fd5887584224
2024-09-16 02:18:10,094 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5c8a6115-262a-4907-abe9-90d68c458fb0
2024-09-16 02:18:10,114 - INFO - Verified VN network id 9 for VN f5fb66d5-1974-4921-852b-fd5887584224
2024-09-16 02:18:10,114 - INFO - Verifications in API Server for VN ctest-vn-86079863 passed
2024-09-16 02:18:10,114 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f5fb66d5-1974-4921-852b-fd5887584224
2024-09-16 02:18:10,127 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5c8a6115-262a-4907-abe9-90d68c458fb0
2024-09-16 02:18:10,135 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5c8a6115-262a-4907-abe9-90d68c458fb0
2024-09-16 02:18:10,143 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/750367ae-5fe8-4ce3-997d-bb5902a68e67
2024-09-16 02:18:10,156 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-86079863', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44059135', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17724873823887837473', 'uuid-lslong': '9596041987712631332'}, 'enable': 'true', 'created': '2024-09-16T02:18:07', 'last-modified': '2024-09-16T02:18:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510958'}
2024-09-16 02:18:10,163 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-16 02:18:10,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86079863 passed
2024-09-16 02:18:10,163 - DEBUG - ====Verifying policy data for ctest-vn-86079863 in API_Server ======
2024-09-16 02:18:10,163 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-16 02:18:10,169 - DEBUG - Requesting: http://10.0.0.17:8082/domain/373645a6-40c1-41f7-af2f-e489b0f1b81f
2024-09-16 02:18:10,182 - DEBUG - Requesting: http://10.0.0.17:8082/project/70790ced-15c8-436a-b5c5-acfa465b059d
2024-09-16 02:18:10,266 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f5fb66d5-1974-4921-852b-fd5887584224
2024-09-16 02:18:10,281 - DEBUG - ==>Verifying data for policy with id: f2fa8f89-a4d6-4c2c-a830-8f024e56d14d, fqn: ['default-domain', 'ctest-TestBasicPolicy-44059135', 'ctest-policy-allow-all-37407450']
2024-09-16 02:18:10,281 - INFO - VN ctest-vn-86079863 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-16 02:18:10,281 - DEBUG - Verifying the vn in opserver
2024-09-16 02:18:10,281 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-86079863 virtual network link through opserver 10.0.0.17
2024-09-16 02:18:10,281 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-16 02:18:10,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-86079863', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-86079863?flat'}
2024-09-16 02:18:10,292 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44059135:ctest-vn-86079863 is found in opserver
2024-09-16 02:18:10,302 - DEBUG - Do not have enough data to verify VN in agent
2024-09-16 02:18:10,307 - DEBUG - VRF ids for VN ctest-vn-86079863: {}
2024-09-16 02:18:10,360 - DEBUG - Services list from nova: [