2025-01-07 21:03:49,433 - INFO - Domain Default found not creating
2025-01-07 21:03:49,600 - INFO - Project ctest-TestBasicPolicy-11392143 not found, creating it
2025-01-07 21:03:50,080 - INFO - Created Project:ctest-TestBasicPolicy-11392143, ID : 7704af25-c1ef-470e-9434-f586cdc5c4e7
2025-01-07 21:03:51,634 - INFO - ================================================================================
2025-01-07 21:03:51,634 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 21:03:51,634 - 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
2025-01-07 21:03:51,891 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.17': '0'}} with
2025-01-07 21:03:51,891 - INFO - Initial checks done. Running the testcase now
2025-01-07 21:03:51,891 - INFO -
2025-01-07 21:03:52,461 - DEBUG - Response for create_network : {'network': {'id': 'e884be3c-5249-4bd5-a42a-0f56068f6a4d', 'name': 'ctest-vn-99768879', 'tenant_id': '7704af25c1ef470e9434f586cdc5c4e7', 'project_id': '7704af25c1ef470e9434f586cdc5c4e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11392143', 'ctest-vn-99768879'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 21:03:52,671 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa05c416-e676-4506-8bb1-77776e22c45d', 'name': '', 'tenant_id': '7704af25c1ef470e9434f586cdc5c4e7', 'network_id': 'e884be3c-5249-4bd5-a42a-0f56068f6a4d', 'ip_version': 4, 'cidr': '46.217.126.0/26', 'allocation_pools': [{'start': '46.217.126.2', 'end': '46.217.126.62'}], 'gateway_ip': '46.217.126.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.217.126.2', 'tags': [], 'project_id': '7704af25c1ef470e9434f586cdc5c4e7'}}
2025-01-07 21:03:52,694 - INFO - Created VN ctest-vn-99768879
2025-01-07 21:03:52,749 - DEBUG - VN ctest-vn-99768879 UUID is e884be3c-5249-4bd5-a42a-0f56068f6a4d
2025-01-07 21:03:53,091 - DEBUG - Response for create_network : {'network': {'id': 'b2c09e95-d164-4006-929d-df76316e79ba', 'name': 'ctest-vn-93112153', 'tenant_id': '7704af25c1ef470e9434f586cdc5c4e7', 'project_id': '7704af25c1ef470e9434f586cdc5c4e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11392143', 'ctest-vn-93112153'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 21:03:53,313 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adca8159-4b48-43a1-b54e-d1c705745f21', 'name': '', 'tenant_id': '7704af25c1ef470e9434f586cdc5c4e7', 'network_id': 'b2c09e95-d164-4006-929d-df76316e79ba', 'ip_version': 4, 'cidr': '93.33.153.0/26', 'allocation_pools': [{'start': '93.33.153.2', 'end': '93.33.153.62'}], 'gateway_ip': '93.33.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.33.153.2', 'tags': [], 'project_id': '7704af25c1ef470e9434f586cdc5c4e7'}}
2025-01-07 21:03:53,334 - INFO - Created VN ctest-vn-93112153
2025-01-07 21:03:53,385 - DEBUG - VN ctest-vn-93112153 UUID is b2c09e95-d164-4006-929d-df76316e79ba
2025-01-07 21:03:53,499 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-99768879, 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-11392143:ctest-vn-93112153, 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]
2025-01-07 21:03:53,824 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e884be3c-5249-4bd5-a42a-0f56068f6a4d', 'name': 'ctest-vn-99768879', 'tenant_id': '7704af25c1ef470e9434f586cdc5c4e7', 'project_id': '7704af25c1ef470e9434f586cdc5c4e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa05c416-e676-4506-8bb1-77776e22c45d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11392143', 'ctest-vn-99768879'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11392143', 'ctest-policy-allow-all-63326499']], 'subnet_ipam': [{'subnet_cidr': '46.217.126.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 21:03:54,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2c09e95-d164-4006-929d-df76316e79ba', 'name': 'ctest-vn-93112153', 'tenant_id': '7704af25c1ef470e9434f586cdc5c4e7', 'project_id': '7704af25c1ef470e9434f586cdc5c4e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['adca8159-4b48-43a1-b54e-d1c705745f21'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11392143', 'ctest-vn-93112153'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11392143', 'ctest-policy-allow-all-63326499']], 'subnet_ipam': [{'subnet_cidr': '93.33.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 21:03:54,245 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 21:03:54,543 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 21:03:54,573 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f36552f4-81b7-429a-b708-26a0e3d372b2
2025-01-07 21:03:54,588 - DEBUG - Requesting: http://10.0.0.12:8082/project/7704af25-c1ef-470e-9434-f586cdc5c4e7
2025-01-07 21:03:54,663 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e884be3c-5249-4bd5-a42a-0f56068f6a4d
2025-01-07 21:03:54,675 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e884be3c-5249-4bd5-a42a-0f56068f6a4d
2025-01-07 21:03:54,688 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcfe094c-bc8c-4a7a-a46c-d2c540520b77
2025-01-07 21:03:54,699 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcfe094c-bc8c-4a7a-a46c-d2c540520b77
2025-01-07 21:03:54,707 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/aca39512-9fd3-4c7d-87f2-8d89e8ab5fde
2025-01-07 21:03:54,719 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 21:03:54,719 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e884be3c-5249-4bd5-a42a-0f56068f6a4d
2025-01-07 21:03:54,732 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcfe094c-bc8c-4a7a-a46c-d2c540520b77
2025-01-07 21:03:54,753 - INFO - Verified VN network id 8 for VN e884be3c-5249-4bd5-a42a-0f56068f6a4d
2025-01-07 21:03:54,753 - INFO - Verifications in API Server for VN ctest-vn-99768879 passed
2025-01-07 21:03:54,753 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e884be3c-5249-4bd5-a42a-0f56068f6a4d
2025-01-07 21:03:54,769 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcfe094c-bc8c-4a7a-a46c-d2c540520b77
2025-01-07 21:03:54,782 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcfe094c-bc8c-4a7a-a46c-d2c540520b77
2025-01-07 21:03:54,793 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/aca39512-9fd3-4c7d-87f2-8d89e8ab5fde
2025-01-07 21:03:54,816 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-99768879', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11392143', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16754725680012938197', 'uuid-lslong': '11829284233393695309'}, 'enable': 'true', 'created': '2025-01-07T21:03:52', 'last-modified': '2025-01-07T21:03:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016103'}
2025-01-07 21:03:54,824 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 21:03:54,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99768879 passed
2025-01-07 21:03:54,824 - DEBUG - ====Verifying policy data for ctest-vn-99768879 in API_Server ======
2025-01-07 21:03:54,824 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 21:03:54,833 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f36552f4-81b7-429a-b708-26a0e3d372b2
2025-01-07 21:03:54,851 - DEBUG - Requesting: http://10.0.0.12:8082/project/7704af25-c1ef-470e-9434-f586cdc5c4e7
2025-01-07 21:03:54,928 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e884be3c-5249-4bd5-a42a-0f56068f6a4d
2025-01-07 21:03:54,938 - DEBUG - ==>Verifying data for policy with id: 0e615439-8f47-4685-a9be-ed2d3e849064, fqn: ['default-domain', 'ctest-TestBasicPolicy-11392143', 'ctest-policy-allow-all-63326499']
2025-01-07 21:03:54,938 - INFO - VN ctest-vn-99768879 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 21:03:54,938 - DEBUG - Verifying the vn in opserver
2025-01-07 21:03:54,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-99768879 virtual network link through opserver 10.0.0.12
2025-01-07 21:03:54,938 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-07 21:03:55,241 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-07 21:03:55,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-99768879', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-99768879?flat'}
2025-01-07 21:03:55,304 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-99768879 is found in opserver
2025-01-07 21:03:55,316 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 21:03:55,321 - DEBUG - VRF ids for VN ctest-vn-99768879: {}
2025-01-07 21:03:55,321 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 21:03:55,327 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f36552f4-81b7-429a-b708-26a0e3d372b2
2025-01-07 21:03:55,339 - DEBUG - Requesting: http://10.0.0.12:8082/project/7704af25-c1ef-470e-9434-f586cdc5c4e7
2025-01-07 21:03:55,414 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b2c09e95-d164-4006-929d-df76316e79ba
2025-01-07 21:03:55,427 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b2c09e95-d164-4006-929d-df76316e79ba
2025-01-07 21:03:55,439 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a73d6017-1de8-4777-80e8-4f2fddaa0c8c
2025-01-07 21:03:55,447 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a73d6017-1de8-4777-80e8-4f2fddaa0c8c
2025-01-07 21:03:55,455 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/7551cf81-c160-4189-93e3-6b54b84767ca
2025-01-07 21:03:55,462 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 21:03:55,462 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b2c09e95-d164-4006-929d-df76316e79ba
2025-01-07 21:03:55,473 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a73d6017-1de8-4777-80e8-4f2fddaa0c8c
2025-01-07 21:03:55,491 - INFO - Verified VN network id 9 for VN b2c09e95-d164-4006-929d-df76316e79ba
2025-01-07 21:03:55,491 - INFO - Verifications in API Server for VN ctest-vn-93112153 passed
2025-01-07 21:03:55,491 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b2c09e95-d164-4006-929d-df76316e79ba
2025-01-07 21:03:55,504 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a73d6017-1de8-4777-80e8-4f2fddaa0c8c
2025-01-07 21:03:55,512 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a73d6017-1de8-4777-80e8-4f2fddaa0c8c
2025-01-07 21:03:55,519 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/7551cf81-c160-4189-93e3-6b54b84767ca
2025-01-07 21:03:55,530 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-93112153', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11392143', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12880469300579942406', 'uuid-lslong': '10564845999609510330'}, 'enable': 'true', 'created': '2025-01-07T21:03:53', 'last-modified': '2025-01-07T21:03:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482861'}
2025-01-07 21:03:55,537 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 21:03:55,537 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93112153 passed
2025-01-07 21:03:55,537 - DEBUG - ====Verifying policy data for ctest-vn-93112153 in API_Server ======
2025-01-07 21:03:55,537 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 21:03:55,543 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f36552f4-81b7-429a-b708-26a0e3d372b2
2025-01-07 21:03:55,555 - DEBUG - Requesting: http://10.0.0.12:8082/project/7704af25-c1ef-470e-9434-f586cdc5c4e7
2025-01-07 21:03:55,632 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b2c09e95-d164-4006-929d-df76316e79ba
2025-01-07 21:03:55,645 - DEBUG - ==>Verifying data for policy with id: 0e615439-8f47-4685-a9be-ed2d3e849064, fqn: ['default-domain', 'ctest-TestBasicPolicy-11392143', 'ctest-policy-allow-all-63326499']
2025-01-07 21:03:55,645 - INFO - VN ctest-vn-93112153 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 21:03:55,645 - DEBUG - Verifying the vn in opserver
2025-01-07 21:03:55,646 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-93112153 virtual network link through opserver 10.0.0.12
2025-01-07 21:03:55,646 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-07 21:03:55,657 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-93112153', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-93112153?flat'}
2025-01-07 21:03:55,657 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11392143:ctest-vn-93112153 is found in opserver
2025-01-07 21:03:55,670 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 21:03:55,676 - DEBUG - VRF ids for VN ctest-vn-93112153: {}
2025-01-07 21:03:55,752 - DEBUG - Services list from nova: [