2024-09-18 03:10:42,431 - INFO - Domain Default found not creating
2024-09-18 03:10:42,606 - INFO - Project ctest-TestBasicPolicy-37505242 not found, creating it
2024-09-18 03:10:43,095 - INFO - Created Project:ctest-TestBasicPolicy-37505242, ID : 93bacd45-5f5e-4812-a6da-7c09572e4e2a
2024-09-18 03:10:44,569 - INFO - ================================================================================
2024-09-18 03:10:44,569 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-18 03:10:44,569 - 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-18 03:10:44,823 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.27': '0'}} with
2024-09-18 03:10:44,823 - INFO - Initial checks done. Running the testcase now
2024-09-18 03:10:44,823 - INFO -
2024-09-18 03:10:45,408 - DEBUG - Response for create_network : {'network': {'id': '4d572f93-0051-4566-9c9f-bd44a8385599', 'name': 'ctest-vn-74145569', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'project_id': '93bacd455f5e4812a6da7c09572e4e2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-vn-74145569'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 03:10:45,588 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f28c5b89-e6c4-4d5d-9145-7bdbd1a44ea8', 'name': '', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'network_id': '4d572f93-0051-4566-9c9f-bd44a8385599', 'ip_version': 4, 'cidr': '38.59.61.128/26', 'allocation_pools': [{'start': '38.59.61.130', 'end': '38.59.61.190'}], 'gateway_ip': '38.59.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.59.61.130', 'tags': [], 'project_id': '93bacd455f5e4812a6da7c09572e4e2a'}}
2024-09-18 03:10:45,607 - INFO - Created VN ctest-vn-74145569
2024-09-18 03:10:45,668 - DEBUG - VN ctest-vn-74145569 UUID is 4d572f93-0051-4566-9c9f-bd44a8385599
2024-09-18 03:10:46,002 - DEBUG - Response for create_network : {'network': {'id': 'dec955f0-f51c-41e0-9e16-5e77994926ed', 'name': 'ctest-vn-32434706', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'project_id': '93bacd455f5e4812a6da7c09572e4e2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-vn-32434706'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 03:10:46,172 - DEBUG - Response for create_subnet : {'subnet': {'id': '49924166-2ab9-45b6-9fbf-1614b9bb1053', 'name': '', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'network_id': 'dec955f0-f51c-41e0-9e16-5e77994926ed', 'ip_version': 4, 'cidr': '21.8.9.64/26', 'allocation_pools': [{'start': '21.8.9.66', 'end': '21.8.9.126'}], 'gateway_ip': '21.8.9.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.8.9.66', 'tags': [], 'project_id': '93bacd455f5e4812a6da7c09572e4e2a'}}
2024-09-18 03:10:46,191 - INFO - Created VN ctest-vn-32434706
2024-09-18 03:10:46,248 - DEBUG - VN ctest-vn-32434706 UUID is dec955f0-f51c-41e0-9e16-5e77994926ed
2024-09-18 03:10:46,380 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569, 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-37505242:ctest-vn-32434706, 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-18 03:10:46,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d572f93-0051-4566-9c9f-bd44a8385599', 'name': 'ctest-vn-74145569', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'project_id': '93bacd455f5e4812a6da7c09572e4e2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f28c5b89-e6c4-4d5d-9145-7bdbd1a44ea8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-vn-74145569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-policy-allow-all-99557835']], 'subnet_ipam': [{'subnet_cidr': '38.59.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 03:10:47,001 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dec955f0-f51c-41e0-9e16-5e77994926ed', 'name': 'ctest-vn-32434706', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'project_id': '93bacd455f5e4812a6da7c09572e4e2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49924166-2ab9-45b6-9fbf-1614b9bb1053'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-vn-32434706'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-policy-allow-all-99557835']], 'subnet_ipam': [{'subnet_cidr': '21.8.9.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 03:10:47,153 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-18 03:10:47,458 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-18 03:10:47,490 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8
2024-09-18 03:10:47,506 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a
2024-09-18 03:10:47,595 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599
2024-09-18 03:10:47,619 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599
2024-09-18 03:10:47,637 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02
2024-09-18 03:10:47,647 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02
2024-09-18 03:10:47,656 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ef8b243a-f9c9-42e0-97c9-a3c7fb8c161f
2024-09-18 03:10:47,664 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 03:10:47,664 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599
2024-09-18 03:10:47,678 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02
2024-09-18 03:10:47,698 - INFO - Verified VN network id 7 for VN 4d572f93-0051-4566-9c9f-bd44a8385599
2024-09-18 03:10:47,698 - INFO - Verifications in API Server for VN ctest-vn-74145569 passed
2024-09-18 03:10:47,698 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599
2024-09-18 03:10:47,713 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02
2024-09-18 03:10:47,722 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02
2024-09-18 03:10:47,732 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ef8b243a-f9c9-42e0-97c9-a3c7fb8c161f
2024-09-18 03:10:47,746 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37505242', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5572975372306302310', 'uuid-lslong': '11285947293791442329'}, 'enable': 'true', 'created': '2024-09-18T03:10:45', 'last-modified': '2024-09-18T03:10:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068087'}
2024-09-18 03:10:47,753 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 03:10:47,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74145569 passed
2024-09-18 03:10:47,753 - DEBUG - ====Verifying policy data for ctest-vn-74145569 in API_Server ======
2024-09-18 03:10:47,753 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-18 03:10:47,759 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8
2024-09-18 03:10:47,772 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a
2024-09-18 03:10:47,853 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599
2024-09-18 03:10:47,867 - DEBUG - ==>Verifying data for policy with id: 83783a6e-79cd-4953-8306-dee05827d8c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-policy-allow-all-99557835']
2024-09-18 03:10:47,867 - INFO - VN ctest-vn-74145569 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 03:10:47,867 - DEBUG - Verifying the vn in opserver
2024-09-18 03:10:47,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569 virtual network link through opserver 10.0.0.29
2024-09-18 03:10:47,867 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-18 03:10:48,159 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-18 03:10:48,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569?flat'}
2024-09-18 03:10:48,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569 is found in opserver
2024-09-18 03:10:48,235 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 03:10:48,242 - DEBUG - VRF ids for VN ctest-vn-74145569: {}
2024-09-18 03:10:48,242 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-18 03:10:48,249 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8
2024-09-18 03:10:48,264 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a
2024-09-18 03:10:48,351 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed
2024-09-18 03:10:48,368 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed
2024-09-18 03:10:48,382 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb
2024-09-18 03:10:48,392 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb
2024-09-18 03:10:48,401 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/76b879e5-4843-4914-8e25-c0e5acc1bb32
2024-09-18 03:10:48,408 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 03:10:48,408 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed
2024-09-18 03:10:48,421 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb
2024-09-18 03:10:48,441 - INFO - Verified VN network id 8 for VN dec955f0-f51c-41e0-9e16-5e77994926ed
2024-09-18 03:10:48,441 - INFO - Verifications in API Server for VN ctest-vn-32434706 passed
2024-09-18 03:10:48,441 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed
2024-09-18 03:10:48,455 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb
2024-09-18 03:10:48,464 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb
2024-09-18 03:10:48,473 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/76b879e5-4843-4914-8e25-c0e5acc1bb32
2024-09-18 03:10:48,487 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37505242', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16053456840131625440', 'uuid-lslong': '11391396175246075629'}, 'enable': 'true', 'created': '2024-09-18T03:10:45', 'last-modified': '2024-09-18T03:10:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.554834'}
2024-09-18 03:10:48,493 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 03:10:48,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32434706 passed
2024-09-18 03:10:48,493 - DEBUG - ====Verifying policy data for ctest-vn-32434706 in API_Server ======
2024-09-18 03:10:48,494 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-18 03:10:48,500 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8
2024-09-18 03:10:48,515 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a
2024-09-18 03:10:48,594 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed
2024-09-18 03:10:48,608 - DEBUG - ==>Verifying data for policy with id: 83783a6e-79cd-4953-8306-dee05827d8c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-policy-allow-all-99557835']
2024-09-18 03:10:48,608 - INFO - VN ctest-vn-32434706 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 03:10:48,608 - DEBUG - Verifying the vn in opserver
2024-09-18 03:10:48,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706 virtual network link through opserver 10.0.0.29
2024-09-18 03:10:48,609 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-18 03:10:48,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706?flat'}
2024-09-18 03:10:48,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706 is found in opserver
2024-09-18 03:10:48,631 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 03:10:48,636 - DEBUG - VRF ids for VN ctest-vn-32434706: {}
2024-09-18 03:10:48,689 - DEBUG - Services list from nova: [