2024-08-26 21:20:08,247 - INFO - Domain Default found not creating
2024-08-26 21:20:08,500 - INFO - Project ctest-TestBasicPolicy-10533057 not found, creating it
2024-08-26 21:20:09,031 - INFO - Created Project:ctest-TestBasicPolicy-10533057, ID : f1c40f66-8bbd-4e7a-abd3-784d4d482b5b
2024-08-26 21:20:10,718 - INFO - ================================================================================
2024-08-26 21:20:10,719 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 21:20:10,719 - 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-26 21:20:10,984 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.8': '0'}} with
2024-08-26 21:20:10,984 - INFO - Initial checks done. Running the testcase now
2024-08-26 21:20:10,984 - INFO -
2024-08-26 21:20:11,612 - DEBUG - Response for create_network : {'network': {'id': '3abb2e30-7045-41bd-b7f1-aa07d7a080eb', 'name': 'ctest-vn-35444063', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-vn-35444063'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 21:20:11,821 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f743de55-6176-4476-be8f-cf56b0ef1e20', 'name': '', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'network_id': '3abb2e30-7045-41bd-b7f1-aa07d7a080eb', 'ip_version': 4, 'cidr': '134.28.97.192/26', 'allocation_pools': [{'start': '134.28.97.194', 'end': '134.28.97.254'}], 'gateway_ip': '134.28.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.28.97.194', 'tags': [], 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b'}}
2024-08-26 21:20:11,847 - INFO - Created VN ctest-vn-35444063
2024-08-26 21:20:11,902 - DEBUG - VN ctest-vn-35444063 UUID is 3abb2e30-7045-41bd-b7f1-aa07d7a080eb
2024-08-26 21:20:12,227 - DEBUG - Response for create_network : {'network': {'id': '4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c', 'name': 'ctest-vn-96880447', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-vn-96880447'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 21:20:12,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb41426d-b22a-4343-a89f-29b43c637e2a', 'name': '', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'network_id': '4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c', 'ip_version': 4, 'cidr': '36.37.173.192/26', 'allocation_pools': [{'start': '36.37.173.194', 'end': '36.37.173.254'}], 'gateway_ip': '36.37.173.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.37.173.194', 'tags': [], 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b'}}
2024-08-26 21:20:12,475 - INFO - Created VN ctest-vn-96880447
2024-08-26 21:20:12,526 - DEBUG - VN ctest-vn-96880447 UUID is 4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c
2024-08-26 21:20:12,650 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063, 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-10533057:ctest-vn-96880447, 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-26 21:20:12,967 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3abb2e30-7045-41bd-b7f1-aa07d7a080eb', 'name': 'ctest-vn-35444063', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f743de55-6176-4476-be8f-cf56b0ef1e20'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-vn-35444063'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-policy-allow-all-49273465']], 'subnet_ipam': [{'subnet_cidr': '134.28.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 21:20:13,240 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c', 'name': 'ctest-vn-96880447', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb41426d-b22a-4343-a89f-29b43c637e2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-vn-96880447'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-policy-allow-all-49273465']], 'subnet_ipam': [{'subnet_cidr': '36.37.173.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 21:20:13,390 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-26 21:20:13,695 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-26 21:20:13,737 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01
2024-08-26 21:20:13,755 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b
2024-08-26 21:20:13,841 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb
2024-08-26 21:20:13,853 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb
2024-08-26 21:20:13,866 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e
2024-08-26 21:20:13,878 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e
2024-08-26 21:20:13,889 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/5790a036-ca44-418d-8b1e-ddc8aa6f2dc0
2024-08-26 21:20:13,899 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 21:20:13,899 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb
2024-08-26 21:20:13,909 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e
2024-08-26 21:20:13,926 - INFO - Verified VN network id 8 for VN 3abb2e30-7045-41bd-b7f1-aa07d7a080eb
2024-08-26 21:20:13,926 - INFO - Verifications in API Server for VN ctest-vn-35444063 passed
2024-08-26 21:20:13,927 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb
2024-08-26 21:20:13,939 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e
2024-08-26 21:20:13,949 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e
2024-08-26 21:20:13,958 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/5790a036-ca44-418d-8b1e-ddc8aa6f2dc0
2024-08-26 21:20:13,975 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10533057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4232027060421607869', 'uuid-lslong': '13254562128987193579'}, 'enable': 'true', 'created': '2024-08-26T21:20:11', 'last-modified': '2024-08-26T21:20:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034768'}
2024-08-26 21:20:13,983 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 21:20:13,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35444063 passed
2024-08-26 21:20:13,984 - DEBUG - ====Verifying policy data for ctest-vn-35444063 in API_Server ======
2024-08-26 21:20:13,984 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-26 21:20:13,993 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01
2024-08-26 21:20:14,010 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b
2024-08-26 21:20:14,088 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb
2024-08-26 21:20:14,098 - DEBUG - ==>Verifying data for policy with id: 2905fb78-9060-459a-bf12-bf5b885d3522, fqn: ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-policy-allow-all-49273465']
2024-08-26 21:20:14,098 - INFO - VN ctest-vn-35444063 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 21:20:14,098 - DEBUG - Verifying the vn in opserver
2024-08-26 21:20:14,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063 virtual network link through opserver 10.0.0.42
2024-08-26 21:20:14,098 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-26 21:20:14,416 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-26 21:20:14,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063?flat'}
2024-08-26 21:20:14,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063 is found in opserver
2024-08-26 21:20:14,500 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 21:20:14,506 - DEBUG - VRF ids for VN ctest-vn-35444063: {}
2024-08-26 21:20:14,506 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-26 21:20:14,514 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01
2024-08-26 21:20:14,527 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b
2024-08-26 21:20:14,604 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c
2024-08-26 21:20:14,624 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c
2024-08-26 21:20:14,634 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4
2024-08-26 21:20:14,644 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4
2024-08-26 21:20:14,653 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/d0e1bda7-1b9c-4fb6-a337-ac3b0b346686
2024-08-26 21:20:14,662 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 21:20:14,662 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c
2024-08-26 21:20:14,672 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4
2024-08-26 21:20:14,690 - INFO - Verified VN network id 9 for VN 4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c
2024-08-26 21:20:14,690 - INFO - Verifications in API Server for VN ctest-vn-96880447 passed
2024-08-26 21:20:14,690 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c
2024-08-26 21:20:14,703 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4
2024-08-26 21:20:14,713 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4
2024-08-26 21:20:14,723 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/d0e1bda7-1b9c-4fb6-a337-ac3b0b346686
2024-08-26 21:20:14,740 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10533057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5758683339883300266', 'uuid-lslong': '12751137276571603292'}, 'enable': 'true', 'created': '2024-08-26T21:20:12', 'last-modified': '2024-08-26T21:20:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531096'}
2024-08-26 21:20:14,766 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 21:20:14,767 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96880447 passed
2024-08-26 21:20:14,767 - DEBUG - ====Verifying policy data for ctest-vn-96880447 in API_Server ======
2024-08-26 21:20:14,767 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-26 21:20:14,779 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01
2024-08-26 21:20:14,795 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b
2024-08-26 21:20:14,874 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c
2024-08-26 21:20:14,884 - DEBUG - ==>Verifying data for policy with id: 2905fb78-9060-459a-bf12-bf5b885d3522, fqn: ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-policy-allow-all-49273465']
2024-08-26 21:20:14,884 - INFO - VN ctest-vn-96880447 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 21:20:14,884 - DEBUG - Verifying the vn in opserver
2024-08-26 21:20:14,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447 virtual network link through opserver 10.0.0.42
2024-08-26 21:20:14,884 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-26 21:20:14,899 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447?flat'}
2024-08-26 21:20:14,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447 is found in opserver
2024-08-26 21:20:14,912 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 21:20:14,917 - DEBUG - VRF ids for VN ctest-vn-96880447: {}
2024-08-26 21:20:14,985 - DEBUG - Services list from nova: [