2024-11-10 21:59:46,058 - INFO - Domain Default found not creating
2024-11-10 21:59:46,233 - INFO - Project ctest-TestBasicPolicy-77525375 not found, creating it
2024-11-10 21:59:46,786 - INFO - Created Project:ctest-TestBasicPolicy-77525375, ID : 0bda7324-0ab7-492a-a563-150660efb987
2024-11-10 21:59:48,284 - INFO - ================================================================================
2024-11-10 21:59:48,284 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 21:59:48,284 - 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-10 21:59:48,543 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.6': '0'}} with
2024-11-10 21:59:48,543 - INFO - Initial checks done. Running the testcase now
2024-11-10 21:59:48,543 - INFO -
2024-11-10 21:59:49,118 - DEBUG - Response for create_network : {'network': {'id': '41d063f5-c771-4fae-9be4-731ae9494d7f', 'name': 'ctest-vn-01522478', 'tenant_id': '0bda73240ab7492aa563150660efb987', 'project_id': '0bda73240ab7492aa563150660efb987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77525375', 'ctest-vn-01522478'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:59:49,298 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7702819-9275-470a-87da-848e745b4ee3', 'name': '', 'tenant_id': '0bda73240ab7492aa563150660efb987', 'network_id': '41d063f5-c771-4fae-9be4-731ae9494d7f', 'ip_version': 4, 'cidr': '208.189.10.0/26', 'allocation_pools': [{'start': '208.189.10.2', 'end': '208.189.10.62'}], 'gateway_ip': '208.189.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.189.10.2', 'tags': [], 'project_id': '0bda73240ab7492aa563150660efb987'}}
2024-11-10 21:59:49,320 - INFO - Created VN ctest-vn-01522478
2024-11-10 21:59:49,384 - DEBUG - VN ctest-vn-01522478 UUID is 41d063f5-c771-4fae-9be4-731ae9494d7f
2024-11-10 21:59:49,703 - DEBUG - Response for create_network : {'network': {'id': '00935677-fecf-49ce-b18e-e6f7e574d058', 'name': 'ctest-vn-30847696', 'tenant_id': '0bda73240ab7492aa563150660efb987', 'project_id': '0bda73240ab7492aa563150660efb987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77525375', 'ctest-vn-30847696'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:59:49,926 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd50dafec-5981-4e74-a584-b2125c3fa0dd', 'name': '', 'tenant_id': '0bda73240ab7492aa563150660efb987', 'network_id': '00935677-fecf-49ce-b18e-e6f7e574d058', 'ip_version': 4, 'cidr': '29.172.34.0/26', 'allocation_pools': [{'start': '29.172.34.2', 'end': '29.172.34.62'}], 'gateway_ip': '29.172.34.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.172.34.2', 'tags': [], 'project_id': '0bda73240ab7492aa563150660efb987'}}
2024-11-10 21:59:49,946 - INFO - Created VN ctest-vn-30847696
2024-11-10 21:59:50,004 - DEBUG - VN ctest-vn-30847696 UUID is 00935677-fecf-49ce-b18e-e6f7e574d058
2024-11-10 21:59:50,128 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-01522478, 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-77525375:ctest-vn-30847696, 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-10 21:59:50,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41d063f5-c771-4fae-9be4-731ae9494d7f', 'name': 'ctest-vn-01522478', 'tenant_id': '0bda73240ab7492aa563150660efb987', 'project_id': '0bda73240ab7492aa563150660efb987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7702819-9275-470a-87da-848e745b4ee3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77525375', 'ctest-vn-01522478'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77525375', 'ctest-policy-allow-all-65390693']], 'subnet_ipam': [{'subnet_cidr': '208.189.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:59:50,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00935677-fecf-49ce-b18e-e6f7e574d058', 'name': 'ctest-vn-30847696', 'tenant_id': '0bda73240ab7492aa563150660efb987', 'project_id': '0bda73240ab7492aa563150660efb987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d50dafec-5981-4e74-a584-b2125c3fa0dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77525375', 'ctest-vn-30847696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77525375', 'ctest-policy-allow-all-65390693']], 'subnet_ipam': [{'subnet_cidr': '29.172.34.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:59:51,154 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 21:59:51,479 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 21:59:51,515 - DEBUG - Requesting: http://10.0.0.44:8082/domain/7e64206e-1ccd-4d95-8710-042adc194862
2024-11-10 21:59:51,531 - DEBUG - Requesting: http://10.0.0.44:8082/project/0bda7324-0ab7-492a-a563-150660efb987
2024-11-10 21:59:51,613 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/41d063f5-c771-4fae-9be4-731ae9494d7f
2024-11-10 21:59:51,629 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/41d063f5-c771-4fae-9be4-731ae9494d7f
2024-11-10 21:59:51,642 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/13b6dd27-9d28-42c4-a0af-6a2a5d4c54d8
2024-11-10 21:59:51,653 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/13b6dd27-9d28-42c4-a0af-6a2a5d4c54d8
2024-11-10 21:59:51,662 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/429cee2a-e185-4a35-8ac0-ac8eccb63390
2024-11-10 21:59:51,670 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 21:59:51,670 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/41d063f5-c771-4fae-9be4-731ae9494d7f
2024-11-10 21:59:51,688 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/13b6dd27-9d28-42c4-a0af-6a2a5d4c54d8
2024-11-10 21:59:51,708 - INFO - Verified VN network id 9 for VN 41d063f5-c771-4fae-9be4-731ae9494d7f
2024-11-10 21:59:51,709 - INFO - Verifications in API Server for VN ctest-vn-01522478 passed
2024-11-10 21:59:51,709 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/41d063f5-c771-4fae-9be4-731ae9494d7f
2024-11-10 21:59:51,722 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/13b6dd27-9d28-42c4-a0af-6a2a5d4c54d8
2024-11-10 21:59:51,729 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/13b6dd27-9d28-42c4-a0af-6a2a5d4c54d8
2024-11-10 21:59:51,737 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/429cee2a-e185-4a35-8ac0-ac8eccb63390
2024-11-10 21:59:51,749 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-01522478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77525375', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4742400314885361582', 'uuid-lslong': '11233229929989098879'}, 'enable': 'true', 'created': '2024-11-10T21:59:49', 'last-modified': '2024-11-10T21:59:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338677'}
2024-11-10 21:59:51,755 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 21:59:51,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01522478 passed
2024-11-10 21:59:51,755 - DEBUG - ====Verifying policy data for ctest-vn-01522478 in API_Server ======
2024-11-10 21:59:51,756 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 21:59:51,761 - DEBUG - Requesting: http://10.0.0.44:8082/domain/7e64206e-1ccd-4d95-8710-042adc194862
2024-11-10 21:59:51,772 - DEBUG - Requesting: http://10.0.0.44:8082/project/0bda7324-0ab7-492a-a563-150660efb987
2024-11-10 21:59:51,854 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/41d063f5-c771-4fae-9be4-731ae9494d7f
2024-11-10 21:59:51,867 - DEBUG - ==>Verifying data for policy with id: 9eab0227-43df-418e-9923-d896f0b33cc5, fqn: ['default-domain', 'ctest-TestBasicPolicy-77525375', 'ctest-policy-allow-all-65390693']
2024-11-10 21:59:51,867 - INFO - VN ctest-vn-01522478 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 21:59:51,867 - DEBUG - Verifying the vn in opserver
2024-11-10 21:59:51,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-01522478 virtual network link through opserver 10.0.0.44
2024-11-10 21:59:51,867 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-10 21:59:52,167 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-10 21:59:52,225 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-01522478', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-01522478?flat'}
2024-11-10 21:59:52,225 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-01522478 is found in opserver
2024-11-10 21:59:52,235 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 21:59:52,239 - DEBUG - VRF ids for VN ctest-vn-01522478: {}
2024-11-10 21:59:52,239 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 21:59:52,244 - DEBUG - Requesting: http://10.0.0.44:8082/domain/7e64206e-1ccd-4d95-8710-042adc194862
2024-11-10 21:59:52,257 - DEBUG - Requesting: http://10.0.0.44:8082/project/0bda7324-0ab7-492a-a563-150660efb987
2024-11-10 21:59:52,351 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/00935677-fecf-49ce-b18e-e6f7e574d058
2024-11-10 21:59:52,367 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/00935677-fecf-49ce-b18e-e6f7e574d058
2024-11-10 21:59:52,383 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f38f5c9d-268e-4097-8cdf-d48a2fb041b9
2024-11-10 21:59:52,392 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f38f5c9d-268e-4097-8cdf-d48a2fb041b9
2024-11-10 21:59:52,400 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/9d041b6c-be0d-4393-88f9-10bf5dec4e10
2024-11-10 21:59:52,407 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 21:59:52,407 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/00935677-fecf-49ce-b18e-e6f7e574d058
2024-11-10 21:59:52,419 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f38f5c9d-268e-4097-8cdf-d48a2fb041b9
2024-11-10 21:59:52,443 - INFO - Verified VN network id 10 for VN 00935677-fecf-49ce-b18e-e6f7e574d058
2024-11-10 21:59:52,444 - INFO - Verifications in API Server for VN ctest-vn-30847696 passed
2024-11-10 21:59:52,444 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/00935677-fecf-49ce-b18e-e6f7e574d058
2024-11-10 21:59:52,457 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f38f5c9d-268e-4097-8cdf-d48a2fb041b9
2024-11-10 21:59:52,465 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f38f5c9d-268e-4097-8cdf-d48a2fb041b9
2024-11-10 21:59:52,473 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/9d041b6c-be0d-4393-88f9-10bf5dec4e10
2024-11-10 21:59:52,486 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-30847696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77525375', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '41471894952561102', 'uuid-lslong': '12794417543787106392'}, 'enable': 'true', 'created': '2024-11-10T21:59:49', 'last-modified': '2024-11-10T21:59:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.692130'}
2024-11-10 21:59:52,493 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 21:59:52,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30847696 passed
2024-11-10 21:59:52,493 - DEBUG - ====Verifying policy data for ctest-vn-30847696 in API_Server ======
2024-11-10 21:59:52,493 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 21:59:52,498 - DEBUG - Requesting: http://10.0.0.44:8082/domain/7e64206e-1ccd-4d95-8710-042adc194862
2024-11-10 21:59:52,509 - DEBUG - Requesting: http://10.0.0.44:8082/project/0bda7324-0ab7-492a-a563-150660efb987
2024-11-10 21:59:52,596 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/00935677-fecf-49ce-b18e-e6f7e574d058
2024-11-10 21:59:52,612 - DEBUG - ==>Verifying data for policy with id: 9eab0227-43df-418e-9923-d896f0b33cc5, fqn: ['default-domain', 'ctest-TestBasicPolicy-77525375', 'ctest-policy-allow-all-65390693']
2024-11-10 21:59:52,612 - INFO - VN ctest-vn-30847696 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 21:59:52,612 - DEBUG - Verifying the vn in opserver
2024-11-10 21:59:52,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-30847696 virtual network link through opserver 10.0.0.44
2024-11-10 21:59:52,612 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-10 21:59:52,624 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-30847696', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-30847696?flat'}
2024-11-10 21:59:52,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77525375:ctest-vn-30847696 is found in opserver
2024-11-10 21:59:52,637 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 21:59:52,642 - DEBUG - VRF ids for VN ctest-vn-30847696: {}
2024-11-10 21:59:52,714 - DEBUG - Services list from nova: [