2024-11-07 11:53:46,332 - INFO - Domain Default found not creating
2024-11-07 11:53:46,516 - INFO - Project ctest-TestBasicPolicy-96744063 not found, creating it
2024-11-07 11:53:47,043 - INFO - Created Project:ctest-TestBasicPolicy-96744063, ID : 96a619d7-85f7-4a6a-9c49-0e5173e1d9d0
2024-11-07 11:53:48,671 - INFO - ================================================================================
2024-11-07 11:53:48,671 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 11:53:48,671 - 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-11-07 11:53:48,935 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.8': '0'}} with
2024-11-07 11:53:48,935 - INFO - Initial checks done. Running the testcase now
2024-11-07 11:53:48,935 - INFO -
2024-11-07 11:53:49,541 - DEBUG - Response for create_network : {'network': {'id': '6e3d1fbd-9f50-432e-bcd6-6bd827d727fc', 'name': 'ctest-vn-03241798', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'project_id': '96a619d785f74a6a9c490e5173e1d9d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-vn-03241798'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 11:53:49,791 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3752338-373d-4326-986f-ed694ea8b7d0', 'name': '', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'network_id': '6e3d1fbd-9f50-432e-bcd6-6bd827d727fc', 'ip_version': 4, 'cidr': '168.104.146.0/26', 'allocation_pools': [{'start': '168.104.146.2', 'end': '168.104.146.62'}], 'gateway_ip': '168.104.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.104.146.2', 'tags': [], 'project_id': '96a619d785f74a6a9c490e5173e1d9d0'}}
2024-11-07 11:53:49,817 - INFO - Created VN ctest-vn-03241798
2024-11-07 11:53:49,880 - DEBUG - VN ctest-vn-03241798 UUID is 6e3d1fbd-9f50-432e-bcd6-6bd827d727fc
2024-11-07 11:53:50,258 - DEBUG - Response for create_network : {'network': {'id': '1da21105-580e-4cbe-af38-a10de76f84ed', 'name': 'ctest-vn-33486561', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'project_id': '96a619d785f74a6a9c490e5173e1d9d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-vn-33486561'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 11:53:50,481 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b35837c4-741b-4bfe-879e-daba93014c13', 'name': '', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'network_id': '1da21105-580e-4cbe-af38-a10de76f84ed', 'ip_version': 4, 'cidr': '177.224.147.0/26', 'allocation_pools': [{'start': '177.224.147.2', 'end': '177.224.147.62'}], 'gateway_ip': '177.224.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.224.147.2', 'tags': [], 'project_id': '96a619d785f74a6a9c490e5173e1d9d0'}}
2024-11-07 11:53:50,503 - INFO - Created VN ctest-vn-33486561
2024-11-07 11:53:50,564 - DEBUG - VN ctest-vn-33486561 UUID is 1da21105-580e-4cbe-af38-a10de76f84ed
2024-11-07 11:53:50,694 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798, 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-96744063:ctest-vn-33486561, 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-11-07 11:53:51,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e3d1fbd-9f50-432e-bcd6-6bd827d727fc', 'name': 'ctest-vn-03241798', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'project_id': '96a619d785f74a6a9c490e5173e1d9d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3752338-373d-4326-986f-ed694ea8b7d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-vn-03241798'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-policy-allow-all-38313570']], 'subnet_ipam': [{'subnet_cidr': '168.104.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 11:53:51,334 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1da21105-580e-4cbe-af38-a10de76f84ed', 'name': 'ctest-vn-33486561', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'project_id': '96a619d785f74a6a9c490e5173e1d9d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b35837c4-741b-4bfe-879e-daba93014c13'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-vn-33486561'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-policy-allow-all-38313570']], 'subnet_ipam': [{'subnet_cidr': '177.224.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 11:53:51,500 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-07 11:53:51,811 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-07 11:53:51,847 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7
2024-11-07 11:53:51,864 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0
2024-11-07 11:53:51,962 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc
2024-11-07 11:53:51,979 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc
2024-11-07 11:53:51,995 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6
2024-11-07 11:53:52,004 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6
2024-11-07 11:53:52,014 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/593543c4-824e-481f-ac9a-ee1420abc8d1
2024-11-07 11:53:52,023 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 11:53:52,023 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc
2024-11-07 11:53:52,040 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6
2024-11-07 11:53:52,063 - INFO - Verified VN network id 8 for VN 6e3d1fbd-9f50-432e-bcd6-6bd827d727fc
2024-11-07 11:53:52,063 - INFO - Verifications in API Server for VN ctest-vn-03241798 passed
2024-11-07 11:53:52,063 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc
2024-11-07 11:53:52,079 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6
2024-11-07 11:53:52,088 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6
2024-11-07 11:53:52,099 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/593543c4-824e-481f-ac9a-ee1420abc8d1
2024-11-07 11:53:52,113 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96744063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7943540217033540398', 'uuid-lslong': '13607181900272052220'}, 'enable': 'true', 'created': '2024-11-07T11:53:49', 'last-modified': '2024-11-07T11:53:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.123069'}
2024-11-07 11:53:52,120 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 11:53:52,120 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03241798 passed
2024-11-07 11:53:52,121 - DEBUG - ====Verifying policy data for ctest-vn-03241798 in API_Server ======
2024-11-07 11:53:52,121 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-07 11:53:52,127 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7
2024-11-07 11:53:52,142 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0
2024-11-07 11:53:52,228 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc
2024-11-07 11:53:52,246 - DEBUG - ==>Verifying data for policy with id: 83367fd2-f07e-4add-8236-25d5f3786931, fqn: ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-policy-allow-all-38313570']
2024-11-07 11:53:52,246 - INFO - VN ctest-vn-03241798 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 11:53:52,246 - DEBUG - Verifying the vn in opserver
2024-11-07 11:53:52,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798 virtual network link through opserver 10.0.0.28
2024-11-07 11:53:52,247 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-11-07 11:53:52,552 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-11-07 11:53:52,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798?flat'}
2024-11-07 11:53:52,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798 is found in opserver
2024-11-07 11:53:52,634 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 11:53:52,641 - DEBUG - VRF ids for VN ctest-vn-03241798: {}
2024-11-07 11:53:52,641 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-07 11:53:52,648 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7
2024-11-07 11:53:52,663 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0
2024-11-07 11:53:52,749 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed
2024-11-07 11:53:52,769 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed
2024-11-07 11:53:52,784 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac
2024-11-07 11:53:52,793 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac
2024-11-07 11:53:52,802 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/61623685-7ad1-4098-80f7-e236d8e6c304
2024-11-07 11:53:52,810 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 11:53:52,810 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed
2024-11-07 11:53:52,825 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac
2024-11-07 11:53:52,851 - INFO - Verified VN network id 9 for VN 1da21105-580e-4cbe-af38-a10de76f84ed
2024-11-07 11:53:52,851 - INFO - Verifications in API Server for VN ctest-vn-33486561 passed
2024-11-07 11:53:52,851 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed
2024-11-07 11:53:52,867 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac
2024-11-07 11:53:52,878 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac
2024-11-07 11:53:52,888 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/61623685-7ad1-4098-80f7-e236d8e6c304
2024-11-07 11:53:52,904 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96744063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2135287887976877246', 'uuid-lslong': '12626018636422677741'}, 'enable': 'true', 'created': '2024-11-07T11:53:50', 'last-modified': '2024-11-07T11:53:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.647837'}
2024-11-07 11:53:52,911 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 11:53:52,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33486561 passed
2024-11-07 11:53:52,911 - DEBUG - ====Verifying policy data for ctest-vn-33486561 in API_Server ======
2024-11-07 11:53:52,912 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-07 11:53:52,919 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7
2024-11-07 11:53:52,933 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0
2024-11-07 11:53:53,017 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed
2024-11-07 11:53:53,033 - DEBUG - ==>Verifying data for policy with id: 83367fd2-f07e-4add-8236-25d5f3786931, fqn: ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-policy-allow-all-38313570']
2024-11-07 11:53:53,033 - INFO - VN ctest-vn-33486561 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 11:53:53,033 - DEBUG - Verifying the vn in opserver
2024-11-07 11:53:53,033 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561 virtual network link through opserver 10.0.0.28
2024-11-07 11:53:53,033 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-11-07 11:53:53,046 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561?flat'}
2024-11-07 11:53:53,046 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561 is found in opserver
2024-11-07 11:53:53,058 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 11:53:53,064 - DEBUG - VRF ids for VN ctest-vn-33486561: {}
2024-11-07 11:53:53,127 - DEBUG - Services list from nova: [