2024-11-14 18:02:07,980 - INFO - Domain Default found not creating
2024-11-14 18:02:08,152 - INFO - Project ctest-TestBasicPolicy-08375752 not found, creating it
2024-11-14 18:02:08,641 - INFO - Created Project:ctest-TestBasicPolicy-08375752, ID : bada6a57-2013-4bba-9262-8fc36dc89168
2024-11-14 18:02:10,228 - INFO - ================================================================================
2024-11-14 18:02:10,228 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-14 18:02:10,228 - 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-14 18:02:10,489 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.14': '0'}} with
2024-11-14 18:02:10,489 - INFO - Initial checks done. Running the testcase now
2024-11-14 18:02:10,489 - INFO -
2024-11-14 18:02:11,069 - DEBUG - Response for create_network : {'network': {'id': '21b290d2-42b5-49db-b125-c86e0f3027f0', 'name': 'ctest-vn-79582299', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'project_id': 'bada6a5720134bba92628fc36dc89168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-vn-79582299'], 'port_security_enabled': True, 'description': ''}}
2024-11-14 18:02:11,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '426bdcc0-bc54-460f-8078-4ed78f999418', 'name': '', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'network_id': '21b290d2-42b5-49db-b125-c86e0f3027f0', 'ip_version': 4, 'cidr': '67.81.175.192/26', 'allocation_pools': [{'start': '67.81.175.194', 'end': '67.81.175.254'}], 'gateway_ip': '67.81.175.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.81.175.194', 'tags': [], 'project_id': 'bada6a5720134bba92628fc36dc89168'}}
2024-11-14 18:02:11,258 - INFO - Created VN ctest-vn-79582299
2024-11-14 18:02:11,315 - DEBUG - VN ctest-vn-79582299 UUID is 21b290d2-42b5-49db-b125-c86e0f3027f0
2024-11-14 18:02:11,649 - DEBUG - Response for create_network : {'network': {'id': 'b575a4c2-a79b-4000-a526-86eb53c27bd6', 'name': 'ctest-vn-19651961', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'project_id': 'bada6a5720134bba92628fc36dc89168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-vn-19651961'], 'port_security_enabled': True, 'description': ''}}
2024-11-14 18:02:11,844 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7f5fc59-828d-4783-970b-0a3240df588b', 'name': '', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'network_id': 'b575a4c2-a79b-4000-a526-86eb53c27bd6', 'ip_version': 4, 'cidr': '27.218.111.64/26', 'allocation_pools': [{'start': '27.218.111.66', 'end': '27.218.111.126'}], 'gateway_ip': '27.218.111.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.218.111.66', 'tags': [], 'project_id': 'bada6a5720134bba92628fc36dc89168'}}
2024-11-14 18:02:11,865 - INFO - Created VN ctest-vn-19651961
2024-11-14 18:02:11,922 - DEBUG - VN ctest-vn-19651961 UUID is b575a4c2-a79b-4000-a526-86eb53c27bd6
2024-11-14 18:02:12,047 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299, 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-08375752:ctest-vn-19651961, 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-14 18:02:12,389 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21b290d2-42b5-49db-b125-c86e0f3027f0', 'name': 'ctest-vn-79582299', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'project_id': 'bada6a5720134bba92628fc36dc89168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['426bdcc0-bc54-460f-8078-4ed78f999418'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-vn-79582299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-policy-allow-all-98019278']], 'subnet_ipam': [{'subnet_cidr': '67.81.175.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-14 18:02:12,636 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b575a4c2-a79b-4000-a526-86eb53c27bd6', 'name': 'ctest-vn-19651961', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'project_id': 'bada6a5720134bba92628fc36dc89168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c7f5fc59-828d-4783-970b-0a3240df588b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-vn-19651961'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-policy-allow-all-98019278']], 'subnet_ipam': [{'subnet_cidr': '27.218.111.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-14 18:02:12,819 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-14 18:02:13,114 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-14 18:02:13,148 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54
2024-11-14 18:02:13,165 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168
2024-11-14 18:02:13,254 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0
2024-11-14 18:02:13,273 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0
2024-11-14 18:02:13,288 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a
2024-11-14 18:02:13,300 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a
2024-11-14 18:02:13,311 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/ded8e917-4f39-46d4-8662-e01bf7275f35
2024-11-14 18:02:13,320 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-14 18:02:13,320 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0
2024-11-14 18:02:13,334 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a
2024-11-14 18:02:13,355 - INFO - Verified VN network id 8 for VN 21b290d2-42b5-49db-b125-c86e0f3027f0
2024-11-14 18:02:13,355 - INFO - Verifications in API Server for VN ctest-vn-79582299 passed
2024-11-14 18:02:13,355 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0
2024-11-14 18:02:13,371 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a
2024-11-14 18:02:13,380 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a
2024-11-14 18:02:13,389 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/ded8e917-4f39-46d4-8662-e01bf7275f35
2024-11-14 18:02:13,405 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08375752', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2428162381842827739', 'uuid-lslong': '12764829093878310896'}, 'enable': 'true', 'created': '2024-11-14T18:02:11', 'last-modified': '2024-11-14T18:02:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047537'}
2024-11-14 18:02:13,416 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-14 18:02:13,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79582299 passed
2024-11-14 18:02:13,416 - DEBUG - ====Verifying policy data for ctest-vn-79582299 in API_Server ======
2024-11-14 18:02:13,416 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-14 18:02:13,424 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54
2024-11-14 18:02:13,441 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168
2024-11-14 18:02:13,532 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0
2024-11-14 18:02:13,554 - DEBUG - ==>Verifying data for policy with id: 8078bfb1-47c2-4375-8e1f-ef8b850f0b45, fqn: ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-policy-allow-all-98019278']
2024-11-14 18:02:13,554 - INFO - VN ctest-vn-79582299 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-14 18:02:13,554 - DEBUG - Verifying the vn in opserver
2024-11-14 18:02:13,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299 virtual network link through opserver 10.0.0.43
2024-11-14 18:02:13,555 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-11-14 18:02:13,852 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-11-14 18:02:13,918 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299?flat'}
2024-11-14 18:02:13,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299 is found in opserver
2024-11-14 18:02:13,929 - DEBUG - Do not have enough data to verify VN in agent
2024-11-14 18:02:13,935 - DEBUG - VRF ids for VN ctest-vn-79582299: {}
2024-11-14 18:02:13,935 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-14 18:02:13,941 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54
2024-11-14 18:02:13,954 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168
2024-11-14 18:02:14,031 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6
2024-11-14 18:02:14,048 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6
2024-11-14 18:02:14,062 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb
2024-11-14 18:02:14,074 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb
2024-11-14 18:02:14,084 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/12d45878-0770-4b7e-a2cf-8eab420db2fc
2024-11-14 18:02:14,092 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-14 18:02:14,092 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6
2024-11-14 18:02:14,106 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb
2024-11-14 18:02:14,134 - INFO - Verified VN network id 9 for VN b575a4c2-a79b-4000-a526-86eb53c27bd6
2024-11-14 18:02:14,135 - INFO - Verifications in API Server for VN ctest-vn-19651961 passed
2024-11-14 18:02:14,135 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6
2024-11-14 18:02:14,155 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb
2024-11-14 18:02:14,164 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb
2024-11-14 18:02:14,173 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/12d45878-0770-4b7e-a2cf-8eab420db2fc
2024-11-14 18:02:14,188 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08375752', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13075538249082683392', 'uuid-lslong': '11900347410653805526'}, 'enable': 'true', 'created': '2024-11-14T18:02:11', 'last-modified': '2024-11-14T18:02:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.576391'}
2024-11-14 18:02:14,195 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-14 18:02:14,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19651961 passed
2024-11-14 18:02:14,195 - DEBUG - ====Verifying policy data for ctest-vn-19651961 in API_Server ======
2024-11-14 18:02:14,195 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-11-14 18:02:14,202 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54
2024-11-14 18:02:14,224 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168
2024-11-14 18:02:14,303 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6
2024-11-14 18:02:14,317 - DEBUG - ==>Verifying data for policy with id: 8078bfb1-47c2-4375-8e1f-ef8b850f0b45, fqn: ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-policy-allow-all-98019278']
2024-11-14 18:02:14,317 - INFO - VN ctest-vn-19651961 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-14 18:02:14,317 - DEBUG - Verifying the vn in opserver
2024-11-14 18:02:14,317 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961 virtual network link through opserver 10.0.0.43
2024-11-14 18:02:14,317 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-11-14 18:02:14,330 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961?flat'}
2024-11-14 18:02:14,330 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961 is found in opserver
2024-11-14 18:02:14,341 - DEBUG - Do not have enough data to verify VN in agent
2024-11-14 18:02:14,346 - DEBUG - VRF ids for VN ctest-vn-19651961: {}
2024-11-14 18:02:14,404 - DEBUG - Services list from nova: [